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

Method RegisterReflection

tests/cpp/testing_object.h:295–301  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

293 : params(params), body(body), comment(comment) {}
294
295 static void RegisterReflection() {
296 namespace refl = tvm::ffi::reflection;
297 refl::ObjectDef<TFuncObj>()
298 .def_ro("params", &TFuncObj::params, refl::AttachFieldFlag::SEqHashDefRecursive())
299 .def_ro("body", &TFuncObj::body)
300 .def_ro("comment", &TFuncObj::comment, refl::AttachFieldFlag::SEqHashIgnore());
301 }
302
303 static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode;
304 TVM_FFI_DECLARE_OBJECT_INFO_FINAL("test.Func", TFuncObj, Object);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected