GetOutputStride

Function Usage

Obtains the pointer to an output stride based on the operator output index. The output 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 *GetOutputStride(const size_t index) const

Parameters

Parameter

Input/Output

Description

index

Input

Operator output 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 output_stride_0 = *context->GetOutputStride(0);
  ...
}