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

TryGetInputDesc

Function Prototype

bool TryGetInputDesc(const string& name, TensorDesc& tensorDesc) const;

Function Description

Obtains the input TensorDesc of an operator based on its input name.

Parameter Description

Parameter

Input/Output

Type

Description

name

Input

const string&

Input Name

tensorDesc

Output

TensorDesc&

TensorDesc object

Return Value

Parameter

Type

Description

-

bool

If the TensorDesc is obtained successfully, true is returned. Otherwise, false is returned.

Exception Handling

None

Restriction

None