GetDynamicOutputDesc

Description

Obtains the dynamic output TensorDesc of an operator based on the combination of its output name and index.

Prototype

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

TensorDesc GetDynamicOutputDesc(const std::string &name, uint32_t index) const

TensorDesc GetDynamicOutputDesc(const char_t *name, uint32_t index) const

Parameters

Parameter

Input/Output

Description

name

Input

Dynamic output name of the operator.

index

Input

Dynamic output index of the operator, which starts from 1.

Returns

If TensorDesc is obtained successfully, the required TensorDesc object is returned. Otherwise, the default TensorDesc object is returned. Set DataType to DT_FLOAT (indicating the float type) and Format to FORMAT_NCHW (indicating the NCHW format).

Exception Handling

None

Restrictions

None