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

Method AllocData

tests/cpp/test_example.cc:127–127  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

125
126struct CPUNDAlloc {
127 void AllocData(DLTensor* tensor) { tensor->data = malloc(tvm::ffi::GetDataSize(*tensor)); }
128 void FreeData(DLTensor* tensor) { free(tensor->data); }
129};
130

Callers

nothing calls this directly

Calls 1

GetDataSizeFunction · 0.85

Tested by

no test coverage detected