GetBool

Function

Obtains the attribute value of the bool type.

Function Prototype

const bool *GetBool(const size_t index) const

Parameters

ParameterInput/OutputDescription
indexInputIndex of the attribute in the IR prototype definition and in the OP_IMPL registration.

Return Value

Pointer to the attribute value.

Constraints

None

Example

const RuntimeAttrs * runtime_attrs = kernel_context->GetAttrs();
const bool *attr0 = runtime_attrs->GetBool(0);