GetOutputDesc

Description

Obtains the tensor format of an output port.

Prototype

graphStatus GetOutputDesc(const int32_t index, TensorDesc &tensor_desc) const;

Restrictions

None

Parameters

Parameter

Input/Output

Description

index

Input

Output port index of the operator.

tensor_desc

Output

Obtained tensor format.

Returns

Parameter

Type

Description

-

graphStatus

GRAPH_SUCCESS(0) on success;

else, failure.