SetDilation

Function

Set the dilation information, that is, the dilation size of the convolution kernel in the depth, height, and width directions.

Prototype

1
void SetDilation(int64_t dilationD, int64_t dilationH, int64_t dilationW)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

dilationD

Input

Dilation size of the convolution kernel weight in the depth direction.

dilationH

Input

Dilation size of the convolution kernel weight in the height direction.

dilationW

Input

Dilation size of the convolution kernel weight in the width direction.

Returns

None

Restrictions

None

Example

1
2
3
4
optiling::Conv3DBackpropFilterTilingData tilingData;
auto ascendcPlatform = platform_ascendc::PlatformAscendCManager::GetInstance();
ConvBackpropApi::Conv3dBpFilterTiling conv3dBpDwTiling(*ascendcPlatform);
conv3dBpDwTiling.SetDilation(dilationD, dilationH, dilationW);