tvm_tirx.script.ir_builder.meta_var

Contents

tvm_tirx.script.ir_builder.meta_var#

tvm_tirx.script.ir_builder.meta_var(value)#

Return a Python metadata value without binding, naming or relocating it.

Parameters:

value (T) – Any host or IR object, including an unpackable sequence.

Returns:

  • T – The exact input object. No frame is required, no IR is emitted, and existing names and source locations are retained.

  • .. code:: python – # Source and generated Python (the value retains its identity) value = I.meta_var(existing_value) a, b = I.meta_var((left, right))

Return type:

T