更新时间:2021-03-18 GMT+08:00
分享

GetAttr

函数原型

graphStatus GetAttr(const string& name, AttrValue& attrValue) const;

graphStatus GetAttr(const string& name, UsrQuantizeFactorParams& attrValue) const;

功能说明

根据属性名称获取其属性值。

参数说明

参数名

输入/输出

类型

描述

name

输入

const string&

属性名称。

attrValue

输入

AttrValue&

属性值。

attrValue

输入

UsrQuantizeFactorParams&

量化因子参数。

关于UsrQuantizeFactorParams,请参见数据类型说明

返回值

参数名

类型

描述(参数说明、取值范围等)

-

graphStatus

获取属性值成功,返回GRAPH_SUCCESS,否则返回GRAPH_FAILED

异常处理

无。

约束说明

无。

分享:

    相关文档

    相关产品