GetRequiredInputStride
Function Usage
Obtains the stride pointer of a required input tensor based on the input index in the operator prototype definition.
This API is reserved for future use and not supported in the current version.
Prototype
1 | const Stride *GetRequiredInputStride(const size_t ir_index) const |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
ir_index |
Input |
Index of the required input in the operator IR prototype definition, starting from 0. |
Returns
Stride pointer of the specified input tensor. For details about the definition of the stride type, see Stride.
When the input ir_index is invalid or the tensor does not carry discontinuous description information, a null pointer is returned.
Constraints
None
Examples
1 2 3 4 | ge::graphStatus TilingForMul(TilingContext *context) { auto required_input_stride_0 = *context->GetRequiredInputStride(0); ... } |
Parent topic: TilingContext