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

Function EmptyStrided

tests/cpp/test_tensor.cc:35–38  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

33}
34
35inline Tensor EmptyStrided(const Shape& shape, const Shape& strides, DLDataType dtype,
36 DLDevice device) {
37 return Tensor::FromNDAllocStrided(CPUNDAlloc(), shape, strides, dtype, device);
38}
39
40int TestEnvTensorAllocator(DLTensor* prototype, TVMFFIObjectHandle* out) {
41 Shape shape(prototype->shape, prototype->shape + prototype->ndim);

Callers 1

TESTFunction · 0.85

Calls 1

CPUNDAllocClass · 0.70

Tested by

no test coverage detected