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

Method RegisterReflection

tests/cpp/testing_object.h:343–352  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

341 }
342
343 static void RegisterReflection() {
344 namespace refl = tvm::ffi::reflection;
345 refl::ObjectDef<TCustomFuncObj>()
346 .def_ro("params", &TCustomFuncObj::params)
347 .def_ro("body", &TCustomFuncObj::body)
348 .def_ro("comment", &TCustomFuncObj::comment);
349 refl::TypeAttrDef<TCustomFuncObj>()
350 .def(refl::type_attr::kSEqual, &TCustomFuncObj::SEqual)
351 .def(refl::type_attr::kSHash, &TCustomFuncObj::SHash);
352 }
353
354 static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode;
355 TVM_FFI_DECLARE_OBJECT_INFO_FINAL("test.CustomFunc", TCustomFuncObj, Object);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected