tvm_tirx.tirx.script.LetAnnotation

tvm_tirx.tirx.script.LetAnnotation#

class tvm_tirx.tirx.script.LetAnnotation(type_spec=None)#

Bases: object

Marker for an immutable Bind, created by T.let or T.let[type].

Usage in TVMScript:

x: T.let[T.int32] = expr  # Bind with an explicit type
x: T.let = expr          # Bind with an inferred RHS type
as_var(rhs_dtype=None)#

Resolve to a tir.Var.