GetDynamicInputDesc
Description
Obtains the dynamic input TensorDesc of an operator based on the combination of its input name and index.
Prototype
APIs using strings will be deprecated in later versions. Use APIs supporting non-string data instead.
TensorDesc GetDynamicInputDesc(const std::string &name, uint32_t index) const
TensorDesc GetDynamicInputDesc(const char_t *name, uint32_t index) const
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
name |
Input |
Dynamic input name of the operator. |
index |
Input |
Dynamic input index of the operator, which starts from 0. |
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