DefaultValue

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 default value of an attribute.

Prototype

1
IrAttrDefV2 &DefaultValue(const AttrValue &attr_default_value)

Parameters

Parameter

Input/Output

Description

attr_default_value

Input

Default value of an attribute, which is used for optional attributes.

Returns

Parameter

Type

Description

-

IrAttrDefV2 &

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

Restrictions

None