NodeAttrFeature构造函数和析构函数
函数功能
NodeAttrFeature构造函数和析构函数。
函数原型
 
 数据类型为string的接口后续版本会废弃,建议使用数据类型为非string的接口。
NodeAttrFeature(std::string nodeType, std::string attr_name, ge::DataType datatype, ScopeAttrValue &attr_value);
NodeAttrFeature(const char_t *node_type, const char_t *attr_name, ge::DataType data_type, ScopeAttrValue &attr_value);
NodeAttrFeature(NodeAttrFeature const &feature);
NodeAttrFeature &operator=(NodeAttrFeature const &feature);
~NodeAttrFeature() override;
参数说明
| 参数名 | 输入/输出 | 描述 | 
|---|---|---|
| nodeType | 输入 | 算子类型 | 
| attr_name | 输入 | 属性名称 | 
| datatype | 输入 | 属性值的类型,当前支持DT_FLOAT/DT_INT32/DT_STRING/DT_BOOL。 | 
| attr_value | 输入 | 属性值 | 
| node_type | 输入 | 算子类型 | 
| data_type | 输入 | 属性值的类型,当前支持DT_FLOAT/DT_INT32/DT_STRING/DT_BOOL。 | 
| feature | 输入 | NodeAttrFeature对象 | 
返回值
NodeAttrFeature构造函数返回NodeAttrFeature类型的对象。
异常处理
无。
约束说明
无。
父主题: NodeAttrFeature类