UpdateOutputDesc

Description

Updates the output TensorDesc of an operator based on its output name.

Prototype

APIs using strings will be deprecated in later versions. Use APIs supporting non-string data instead.

graphStatus UpdateOutputDesc(const std::string &name, const TensorDesc &tensor_desc)

graphStatus UpdateOutputDesc(const char_t *name, const TensorDesc &tensor_desc)

graphStatus UpdateOutputDesc(const uint32_t index, const TensorDesc &tensor_desc)

Parameters

Parameter

Input/Output

Description

name

Input

Output name of the operator.

tensor_desc

Input

TensorDesc object.

index

Input

Sequence number of the operator output.

Returns

graphStatus type. GRAPH_SUCCESS on success; GRAPH_FAILED on failure.

Exception Handling

None

Restrictions

None