Frees a tensor.
ge::graphStatus Free()
None
If the operation is successful, ge::GRAPH_SUCCESS is returned.
If the operation fails, the status code returned by the manager is returned.
For details about the definition of the ge::graphStatus type, see ge::graphStatus.
std::vector<int> a = {10}; auto addr = reinterpret_cast<void *>(a.data()); TensorData td(addr, nullptr); td.Free();