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

Function TestEnvTensorAllocatorError

tests/cpp/test_tensor.cc:47–50  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

45}
46
47int TestEnvTensorAllocatorError(DLTensor* prototype, TVMFFIObjectHandle* out) {
48 TVMFFIErrorSetRaisedFromCStr("RuntimeError", "TestEnvTensorAllocatorError");
49 return -1;
50}
51
52TEST(Tensor, Basic) {
53 Tensor nd = Empty({1, 2, 3}, DLDataType({kDLFloat, 32, 1}), DLDevice({kDLCPU, 0}));

Callers

nothing calls this directly

Calls 1

Tested by

no test coverage detected