NodeAttrFeature Constructor and Destructor

Applicability

Product

Supported

Atlas A3 training products/Atlas A3 inference products

Atlas A2 training products/Atlas A2 inference products

Atlas 200I/500 A2 inference products

Atlas inference products

Atlas training products

Description

Constructs/Destructs a NodeAttrFeature object.

Prototype

APIs taking string arguments will be deprecated in future releases. Use APIs taking non-string arguments instead.

1
2
3
4
5
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;

Parameters

Parameter

Input/Output

Description

nodeType

Input

Operator type

attr_name

Input

Attribute name

datatype

Input

Attribute value type. Currently, DT_FLOAT, DT_INT32, DT_STRING, and DT_BOOL are supported.

attr_value

Input

Attribute value

node_type

Input

Operator type

data_type

Input

Attribute value type. Currently, DT_FLOAT, DT_INT32, DT_STRING, and DT_BOOL are supported.

feature

Input

NodeAttrFeature object

Returns

A NodeAttrFeature object

Exception Handling

None

Restrictions

None