GetOutputDesc
Function Prototype
TensorDesc GetOutputDesc(const string& name) const;
TensorDesc GetOutputDesc(uint32_t index) const;
Function Description
Obtains the output TensorDesc of an operator based on its output name or output index.
Parameter Description
Parameter |
Input/Output |
Type |
Description |
---|---|---|---|
name |
Input |
const string& |
Output name of the operator |
index |
Input |
uint32_t |
Output index of the operator If no operator output 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 |
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