GetAttrs

Function Usage

Obtains the attribute value of an operator.

Prototype

1
const RuntimeAttrs *GetAttrs() const

Parameters

None

Returns

All attribute values defined in the IR prototype are objects of the const type. The attribute values are saved in the sequence defined by the IR prototype.

Constraints

None

Examples

1
2
auto compute_node_info = extend_kernel_context->GetComputeNodeInfo();
auto attrs = compute_node_info->GetAttrs();