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

Function Empty

tests/cpp/test_tensor.cc:31–33  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

29};
30
31inline Tensor Empty(const Shape& shape, DLDataType dtype, DLDevice device) {
32 return Tensor::FromNDAlloc(CPUNDAlloc(), shape, dtype, device);
33}
34
35inline Tensor EmptyStrided(const Shape& shape, const Shape& strides, DLDataType dtype,
36 DLDevice device) {

Callers 15

TestEnvTensorAllocatorFunction · 0.70
TESTFunction · 0.70
CopyFromMethod · 0.50
MoveFromMethod · 0.50
CreateRepeatedMethod · 0.50
ArrayMethod · 0.50
AssignMethod · 0.50
SwitchContainerMethod · 0.50
make_objectFunction · 0.50
MakeDefaultTupleNodeMethod · 0.50
MakeTupleNodeMethod · 0.50
CopyIfNotUniqueMethod · 0.50

Calls 1

CPUNDAllocClass · 0.70

Tested by

no test coverage detected