IrAttrDef
This struct is used for old APIs and contains the std::string field. You are advised to use the ABI-safe IrAttrDefV2 (see IrAttrDefV2) in new code.
The IR attribute definition structure is defined as follows:
struct IrAttrDef {
std::string attr_name;
IrAttrType ir_attr_type;
std::string attr_data_type; // see `kIrAttrTypesMap` in `operator.cc`
AttrValue attr_default_value;
}
The parameters are described as follows.
Member |
Type |
Description |
||
|---|---|---|---|---|
attr_name |
std::string |
Attribute name. |
||
ir_attr_type |
IrAttrType |
Attribute type. |
||
attr_data_type |
std::string |
Key value in kIrAttrTypesMap.
|
||
attr_default_value |
AttrValue |
Default attribute value. |
Parent topic: CompliantNodeBuilder