目录

Free

Function Description

Frees a tensor.

Function Prototype

ge::graphStatus Free()

Parameters

None

Return Value

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.

Restrictions

None

Calling Example

std::vector<int> a = {10};
auto addr = reinterpret_cast<void *>(a.data());
TensorData td(addr, nullptr);
td.Free();