SetStride
Function
Sets the stride information.
Prototype
1 | void SetStride(int64_t strideD, int64_t strideH, int64_t strideW) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
strideD |
Input |
Size of Stride in the D direction. |
strideH |
Input |
Size of Stride in the H direction. |
strideW |
Input |
Size of Stride in the W direction. |
Returns
None
Restrictions
This API is optional before calling the GetTiling API. If this API is not called, the default values are used: strideD=1, strideH=1, and strideW=1.
Example
1 2 3 4 | // Instantiate the Conv3D API. auto ascendcPlatform = platform_ascendc::PlatformAscendC(context->GetPlatformInfo()); Conv3dTilingApi::Conv3dTiling conv3dApiTiling(ascendcPlatform); conv3dApiTiling.SetStride(strideD, strideH, strideW); |
Parent topic: Conv3D Tiling APIs