GetAttr
Function Prototype
graphStatus GetAttr(const string& name, AttrValue& attrValue) const;
graphStatus GetAttr(const string& name, UsrQuantizeFactorParams& attrValue) const;
Function Description
Obtains the attribute value based on an attribute name.
Parameter Description
Parameter |
Input/Output |
Type |
Description |
---|---|---|---|
name |
Input |
const string& |
Attribute name |
attrValue |
Input |
AttrValue& |
Attribute value |
attrValue |
Input |
UsrQuantizeFactorParams& |
Quantization factor For details about UsrQuantizeFactorParams, see Data Type Description. |
Return Value
Parameter |
Type |
Description |
---|---|---|
- |
graphStatus |
If the attribute value is obtained successfully, GRAPH_SUCCESS is returned. Otherwise, GRAPH_FAILED is returned. |
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