NodeAttrFeature构造函数和析构函数
函数功能
NodeAttrFeature构造函数和析构函数。
函数原型

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