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

Function DeinitWithError

tests/cpp/test_init_once.cc:67–71  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

65}
66
67static int DeinitWithError(void* h) {
68 delete static_cast<int*>(h);
69 TVMFFIErrorSetRaisedFromCStr("RuntimeError", "Deinitialization failed");
70 return -1;
71}
72
73static int InitValue123(void** handle_addr) {
74 *handle_addr = new int(123);

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected