GetListInt
Description
Obtains the attribute value in the form of list of ints.
Prototype
const TypedContinuousVector<int64_t> *GetListInt(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.
For details about the definition of the TypedContinuousVector type, see TypedContinuousVector.
Restrictions
None
Example
const RuntimeAttrs * runtime_attrs = kernel_context->GetAttrs(); const TypedContinuousVector<int64_t> *attr0 = runtime_attrs->GetListInt(0);
Parent topic: RuntimeAttrs