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

SetTensorDesc

Function Prototype

graphStatus SetTensorDesc(const TensorDesc &tensorDesc);

Function Description

Sets the descriptor of a tensor.

Parameter Description

Parameter

Input/Output

Type

Description

tensorDesc

Input

const TensorDesc &

Tensor descriptor to be set

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