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

Method RegisterReflection

tests/cpp/testing_object.h:262–269  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

260 explicit TDefHolderObj(UnsafeInit) {}
261
262 static void RegisterReflection() {
263 namespace refl = tvm::ffi::reflection;
264 refl::ObjectDef<TDefHolderObj>()
265 .def_ro("def_recursive", &TDefHolderObj::def_recursive,
266 refl::AttachFieldFlag::SEqHashDefRecursive())
267 .def_ro("def_non_recursive", &TDefHolderObj::def_non_recursive,
268 refl::AttachFieldFlag::SEqHashDefNonRecursive());
269 }
270
271 static constexpr TVMFFISEqHashKind _type_s_eq_hash_kind = kTVMFFISEqHashKindTreeNode;
272 TVM_FFI_DECLARE_OBJECT_INFO_FINAL("test.DefHolder", TDefHolderObj, Object);

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected