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

Method Deleter

tests/cpp/test_object.cc:241–244  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

239 explicit DummyOpaqueObject(int value) : value(value) {}
240
241 static void Deleter(void* handle) {
242 deleter_trigger_counter++;
243 delete static_cast<DummyOpaqueObject*>(handle);
244 }
245 };
246 TVMFFIObjectHandle handle = nullptr;
247 TVM_FFI_CHECK_SAFE_CALL(TVMFFIObjectCreateOpaque(new DummyOpaqueObject(10), kTVMFFIOpaquePyObject,

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected