MCPcopy Create free account
hub / github.com/apache/tvm-ffi / TVar

Class TVar

tests/python/test_structural_py_class.py:37–45  ·  view source on GitHub ↗

Variable node — compared by binding position, not by name. Mirrors C++ TVarObj with: _type_s_eq_hash_kind = kTVMFFISEqHashKindFreeVar name field has SEqHashIgnore

Source from the content-addressed store, hash-verified

35
36@py_class("testing.py.Var", structural_eq="var")
37class TVar(tvm_ffi.Object):
38 """Variable node — compared by binding position, not by name.
39
40 Mirrors C++ TVarObj with:
41 _type_s_eq_hash_kind = kTVMFFISEqHashKindFreeVar
42 name field has SEqHashIgnore
43 """
44
45 name: str = field(structural_eq="ignore")
46
47
48@py_class("testing.py.Int", structural_eq="tree")

Calls 1

fieldFunction · 0.90