| 52 | } |
| 53 | |
| 54 | int 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 | |
| 62 | TEST(CEnvAPI, TVMFFIEnvSetDLPackManagedTensorAllocator) { |
| 63 | auto old_allocator = TVMFFIEnvGetDLPackManagedTensorAllocator(); |
nothing calls this directly
no outgoing calls
no test coverage detected