tvm_tirx.script.ir_builder.AlreadyEmitted

tvm_tirx.script.ir_builder.AlreadyEmitted#

class tvm_tirx.script.ir_builder.AlreadyEmitted(value)#

Bases: Generic[_T]

Hold the exact native result of an already emitted builder operation.

Parameters:

value (T) – Native result retained without copying or emitting it. Void operator APIs wrap their original Call; statement APIs wrap the emitted statement. Allocation APIs wrap the bound Var or its scalar TensorLoad view.

Variables:

value (T) – The same object, available for identity checks and source-location attachment. Builder consumers must check for this receipt before FFI conversion, so they do not emit the object again.

Notes

FFI conversion exposes only the wrapped object, not its emission history.

value: _T#