hawk.raw_device

Contents

hawk.raw_device#

hawk.raw_device(text, *, access=None, reads=(), writes=(), returns=TensorType(shape=(), dtype='f64', tag=None), language='aether')[source]#

Declare a raw device block (the escape hatch for code the vocabulary cannot spell): text spliced verbatim, with access= required (the walk can’t see inside text), reads/writes naming the touched slots, returns the value type and language the language text is written in (a writer refuses one it cannot write).

Return type:

RawBlock

Parameters:
  • text (str)

  • access (str | None)

  • reads (Sequence[str])

  • writes (Sequence[str])

  • returns (TensorType)

  • language (str)