MutableAttrs
Function Usage
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.
The difference between this method and GetAttrs is that this method can return non-const attribute objects.
Prototype
1 | RuntimeAttrs *MutableAttrs() const |
Parameters
None
Returns
All attribute values defined by the IR prototype and those registered by using the IMPL_OP macro. The attribute values are saved in the sequence defined by the IR prototype. The returned object is not const.
Constraints
None
Examples
1 2 | auto compute_node_info = extend_kernel_context->GetComputeNodeInfo(); auto attrs = compute_node_info->MutableAttrs(); |
Parent topic: ComputeNodeInfo