NodeAttrFeature Constructor and Destructor

Description

Constructs/Destructs a NodeAttrFeature object.

Prototype

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

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