tvm_tirx.script.ir_builder.parser_protocol.not_

Contents

tvm_tirx.script.ir_builder.parser_protocol.not_#

tvm_tirx.script.ir_builder.parser_protocol.not_(value)#

Negate a host or language variant boolean without coercing IR truth in Python.

Parameters:

value (Any) – Once-evaluated host boolean or primitive/tensor boolean expression.

Returns:

Any – Host boolean or native logical negation expression.

Return type:

Any

Notes

No statement is emitted or frame entered. TIRx constructs primitive negation; Relax also supports tensor negation. Invalid operand types propagate native errors. Shared source handling attaches the result loc.

# Source
not value
# Generated builder
X.not_(value)