SetPadding
Function
Sets the pad 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 front Padding in the D direction. |
padTail |
Input |
Size of the rear Padding in the D direction. |
padUp |
Input |
Size of the Padding on the H direction. |
padDown |
Input |
Size of the Padding under 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.
Example
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); |
Parent topic: Conv3D Tiling APIs