tvm_tirx.tirx.script.bind_

Contents

tvm_tirx.tirx.script.bind_#

tvm_tirx.tirx.script.bind_(value=_base.MISSING, *, ty=None, name=None, loc=None, value_loc=None, name_loc=None, frame_value=False)#

Implements tvm_tirx.script.ir_builder.parser_protocol.bind_().

Returned Vars, including tensors, and metadata retain identity, names and locs. Other expressions create native Bind nodes; value_loc belongs to the RHS. Emitted allocation receipts unwrap to their original Var or TensorLoad, checking annotations without creating another binding. Other receipts remain intact. Explicit typed bindings and frame targets retain their separate contracts.

Parameters:
  • value (Any)

  • ty (Any)

  • name (str | None)

  • loc (LocationEntry | Location | None)

  • value_loc (LocationEntry | Location | None)

  • name_loc (LocationEntry | Location | None)

  • frame_value (bool)

Return type:

Any