SetDilation
Function
Sets the dilation information.
Prototype
1 | void SetDilation(int64_t dilationD, int64_t dilationH, int64_t dilationW) |
Parameters
Parameter |
Input/Output |
Description |
|---|---|---|
dilationD |
Input |
Size of Dilation in the D direction. |
dilationH |
Input |
Size of Dilation in the H direction. |
dilationW |
Input |
Size of Dilation 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 dilationD=1, dilationH=1, and dilationW=1.
Example
1 2 3 4 | // Instantiate the Conv3D API. auto ascendcPlatform = platform_ascendc::PlatformAscendC(context->GetPlatformInfo()); Conv3dTilingApi::Conv3dTiling conv3dApiTiling(ascendcPlatform); conv3dApiTiling.SetDilation(dilationD, dilationH, dilationW); |
Parent topic: Conv3D Tiling APIs