GetInt
Description
Obtains the attribute value of the int type.
Prototype
const int64_t *GetInt(const size_t index) const
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
index |
Input |
Index of the attribute in the IR prototype definition and OP_IMPL registration. |
Returns
Pointer to the attribute value.
Restrictions
None
Example
const RuntimeAttrs * runtime_attrs = kernel_context->GetAttrs(); const int64_t *attr0 = runtime_attrs->GetInt(0);
Parent topic: RuntimeAttrs