GetInputStride

Function Usage

Obtains the pointer to an input stride based on the operator input index. The input index refers to the actual index after operator instantiation, not the index in the prototype definition.

This API is reserved for future use and not supported in the current version.

Prototype

1
const Stride *GetInputStride(const size_t index) const

Parameters

Parameter

Input/Output

Description

index

Input

Operator input index, starting from 0.

Returns

Pointer to the specified input stride. For details about the definition of the stride type, see Stride.

When the 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 input_stride_0 = *context->GetInputStride(0);
  ...
}