AttrDataType

Applicable Products

All processors

Header File/Library File

  • Header file: #include <ge/compliant_node_builder.h>
  • Library files: libeager_style_graph_builder_base.so and libeager_style_graph_builder_base_static.a

Function Usage

Sets the data type of an attribute.

Prototype

1
IrAttrDefV2 &AttrDataType(const char_t *attr_data_type)

Parameters

Parameter

Input/Output

Description

attr_data_type

Input

Data type string of the attribute value. Typical types include:

  • int: integer
  • float: floating point
  • string: string
  • bool: boolean
  • list_int: integer list
  • list_float: floating point list

Returns

Parameter

Type

Description

-

IrAttrDefV2 &

Reference to the IR attribute definition class, which supports chain calls.

Restrictions

None