Free

Function Usage

Frees a tensor.

Prototype

1
ge::graphStatus Free()

Parameters

None

Returns

If the operation is successful, ge::GRAPH_SUCCESS is returned. If the operation fails, the status code returned by the manager function is returned.

For details about the definition of the ge::graphStatus type, see ge::graphStatus.

Constraints

None

Examples

1
2
3
auto addr = reinterpret_cast<void *>(0x10);
TensorData td(addr, nullptr);
td.Free();