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

Method FreeData

examples/quickstart/load/load_cpp.cc:53–53  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

51 tensor->data = std::malloc(tensor->shape[0] * sizeof(float));
52 }
53 void FreeData(DLTensor* tensor) { std::free(tensor->data); }
54 };
55 DLDataType f32 = DLDataType({kDLFloat, 32, 1});
56 DLDevice cpu = DLDevice({kDLCPU, 0});

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected