GetInputDesc
Function Prototype
TensorDesc GetInputDesc(const string& name) const;
TensorDesc GetInputDesc(uint32_t index) const;
Function Description
Obtains the input TensorDesc of an operator based on its input name or input index.
Parameter Description
Parameter |
Input/Output |
Type |
Description |
---|---|---|---|
name |
Input |
const string& |
Input name of the operator If no operator input name is available, the default object constructed by TensorDesc is returned. Set DataType to DT_FLOAT (indicating the FLOAT type) and Format to FORMAT_NCHW (indicating the NCHW format). |
index |
Input |
uint32_t |
Input index of the operator If no operator input index is available, the default object constructed by TensorDesc is returned. Set DataType to DT_FLOAT (indicating the FLOAT type) and Format to FORMAT_NCHW (indicating the NCHW format). |
Return Value
Parameter |
Type |
Description |
---|---|---|
TensorDesc |
TensorDesc |
TensorDesc of the operator input |
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