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

Method AllocData

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

Source from the content-addressed store, hash-verified

25
26struct CPUNDAlloc {
27 void AllocData(DLTensor* tensor) { tensor->data = malloc(GetDataSize(*tensor)); }
28 void FreeData(DLTensor* tensor) { free(tensor->data); }
29};
30

Callers

nothing calls this directly

Calls 1

GetDataSizeFunction · 0.85

Tested by

no test coverage detected