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

Method FreeData

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

Source from the content-addressed store, hash-verified

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

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected