Updated on 2022-03-13 GMT+08:00

MutableTensor

Function Prototype

graphStatus MutableTensor(TensorPtr& tensor);

Function Description

Obtains the tensor reference (mutable).

Parameter Description

Parameter

Input/Output

Type

Description

tensor

Output

TensorPtr&

Tensor reference

Return Value

Parameter

Type

Description

-

graphStatus

If the operation is successful, GRAPH_SUCCESS is returned. Otherwise, GRAPH_FAILED is returned.

Exception Handling

None

Restriction

None