GetAttrs
Description
Obtains the attribute values of an operator. Only the attribute values in the operator IR prototype definition and IMPL_OP registration are returned, and other attribute values are deprecated.
Prototype
const RuntimeAttrs *GetAttrs() const
Parameters
None
Returns
All attribute values defined by the IR prototype and those registered by using the IMPL_OP macro are objects of the const type. The attribute values are saved in the sequence defined by the IR prototype.
Restrictions
None
Example
auto ret = bg::CreateComputeNodeInfo(node, buffer_pool); ASSERT_NE(ret, nullptr); auto compute_node_info = reinterpret_cast<ComputeNodeInfo *>(ret.get()); auto attrs = compute_node_info->GetAttrs();
Parent topic: ComputeNodeInfo