tvm_tirx.script.ir_builder.at_#
- tvm_tirx.script.ir_builder.at_(loc, value)#
Attach source context to the same IR node, emission receipt, or frame.
- Parameters:
loc (LocationEntry, Location or None, optional) – Source location to compose with the active construction context. None leaves the value unchanged; stored locations remain non-nullable. UnknownLoc adds no source context.
value (Any) – Native object,
AlreadyEmittedreceipt, or list/tuple of native objects to annotate. A receipt’s contained object receives the loc.
- Returns:
Any – The exact
valueobject, including its original receipt or container. With no active builder, the value is returned without modification.- Return type:
_T
Notes
Native mutation annotates the wrapped object in the builder IR. For an operator receipt this is the Call inside its Evaluate statement. Keep the original Python facade as well, including callable objects and frames. Unsupported objects and ordinary Python values pass through unchanged.