Updated on 2022-03-13 GMT+08:00

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