GetDynamicInputDesc
Function Prototype
TensorDesc GetDynamicInputDesc(const string& name, const unsigned int index) const;
Function Description
Obtains the dynamic input TensorDesc of an operator based on the combination of its input name and index.
Parameter Description
Parameter |
Input/Output |
Type |
Description |
---|---|---|---|
name |
Input |
const string& |
Dynamic input name of the operator |
index |
Input |
const unsigned int |
Dynamic input index of the operator, which starts from 1 |
Return Value
Parameter |
Type |
Description |
---|---|---|
TensorDesc |
TensorDesc |
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
Restriction
None
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.See the reply and handling status in My Cloud VOC.
For any further questions, feel free to contact us through the chatbot.
Chatbot