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

Function TestDLPackManagedTensorAllocatorError

tests/cpp/extra/test_c_env_api.cc:54–60  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

52}
53
54int TestDLPackManagedTensorAllocatorError(DLTensor* prototype, DLManagedTensorVersioned** out,
55 void* error_ctx,
56 void (*SetError)(void* error_ctx, const char* kind,
57 const char* message)) {
58 SetError(error_ctx, "MemoryError", "TestDLPackManagedTensorAllocatorError");
59 return -1;
60}
61
62TEST(CEnvAPI, TVMFFIEnvSetDLPackManagedTensorAllocator) {
63 auto old_allocator = TVMFFIEnvGetDLPackManagedTensorAllocator();

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected