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

Method FreeData

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

Source from the content-addressed store, hash-verified

26struct CPUNDAlloc {
27 void AllocData(DLTensor* tensor) { tensor->data = malloc(GetDataSize(*tensor)); }
28 void FreeData(DLTensor* tensor) { free(tensor->data); }
29};
30
31inline Tensor Empty(const Shape& shape, DLDataType dtype, DLDevice device) {

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected