tvm_tirx.script.ir_builder.parser_protocol.gt_

Contents

tvm_tirx.script.ir_builder.parser_protocol.gt_#

tvm_tirx.script.ir_builder.parser_protocol.gt_(lhs, rhs, *, loc=None)#

Construct the > comparison in written operand order.

Parameters:
  • lhs (Expr or scalar) – Already-evaluated left operand.

  • rhs (Expr or scalar) – Already-evaluated right operand.

  • loc (LocationEntry, Location or None, optional) – Location for the constructed result. None (the default) leaves explicit location unspecified; active source-call provenance is composed by the builder. Frames retain their location until finalization.

Returns:

_ir.Expr – A native comparison expression.

Return type:

Expr

Notes

No statement is emitted or frame entered. TIRx compares primitive operands; Relax selects tensor comparison if either operand is a nonprimitive IR expression, otherwise primitive comparison. Native dtype/shape errors propagate. Do not use Python object equality to compare these operands.

# Source
lhs > rhs
# Generated builder
X.gt_(lhs, rhs)