SetPadding

Function

Sets the padding information.

Prototype

1
void SetPadding(int64_t padFront, int64_t padBack, int64_t padUp, int64_t padDown, int64_t padLeft, int64_t padRight)

Parameters

Table 1 Parameters

Parameter

Input/Output

Description

padFront

Input

Size of the forward padding in the input depth dimension during the forward convolution process.

padBack

Input

Size of the backward padding in the input depth dimension during the forward convolution process.

padUp

Input

Size of the upward padding in the input height dimension during the forward convolution process.

padDown

Input

Size of the downward padding in the input height dimension during the forward convolution process.

padLeft

Input

Size of the leftward padding in the input width dimension during the forward convolution process.

padRight

Input

Size of the rightward padding in the input width dimension 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.SetPadding(padFront, padBack, padUp, padDown, padLeft, padRight);