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

Class TFunc

tests/python/test_structural_py_class.py:56–66  ·  view source on GitHub ↗

Function node with definition region and ignored comment. Mirrors C++ TFuncObj with: params has SEqHashDef comment has SEqHashIgnore

Source from the content-addressed store, hash-verified

54
55@py_class("testing.py.Func", structural_eq="tree")
56class TFunc(tvm_ffi.Object):
57 """Function node with definition region and ignored comment.
58
59 Mirrors C++ TFuncObj with:
60 params has SEqHashDef
61 comment has SEqHashIgnore
62 """
63
64 params: list = field(structural_eq="def")
65 body: list
66 comment: str = field(structural_eq="ignore", default="")
67
68
69@py_class("testing.py.Expr", structural_eq="tree")

Calls 1

fieldFunction · 0.90