SetPadding

Function Usage

Sets the padding information.

Prototype

1
void SetPadding(int64_t padHead, int64_t padTail, int64_t padUp, int64_t padDown, int64_t padLeft, int64_t padRight)

Parameters

Parameter

Input/Output

Description

padHead

Input

Size of the Head Padding in the D direction.

padTail

Input

Size of the Tail Padding in the D direction.

padUp

Input

Size of the Up Padding in the H direction.

padDown

Input

Size of the Down Padding in the H direction.

padLeft

Input

Size of the Left Padding in the W direction.

padRight

Input

Size of the Right Padding 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: padHead=0, padTail=0, padUp=0, padDown=0, padLeft=0, padRight=0.

Examples

1
2
3
4
// Instantiate the Conv3D API.
auto ascendcPlatform = platform_ascendc::PlatformAscendC(context->GetPlatformInfo());
Conv3dTilingApi::Conv3dTiling conv3dApiTiling(ascendcPlatform);
conv3dApiTiling.SetPadding(padHead, padTail, padUp, padDown, padLeft, padRight);