SetStride

Function

Sets the stride information.

Prototype

1
void SetStride(int64_t strideD, int64_t strideH, int64_t strideW)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

strideD

Input

Size of the stride in the depth direction during the forward convolution process.

strideH

Input

Size of the stride in the height direction during the forward convolution process.

strideW

Input

Size of the stride in the width direction during the forward convolution process.

Returns

None

Restrictions

None

Example

1
2
3
4
optiling::Conv3DBackpropFilterTilingData tilingData;
auto ascendcPlatform = platform_ascendc::PlatformAscendCManager::GetInstance();
ConvBackpropApi::Conv3dBpFilterTiling conv3dBpDwTiling(*ascendcPlatform);
conv3dBpDwTiling.SetStride(strideD, strideH, strideW);