Description: Implements convolution operations, supporting 2D, deformable, and grouped convolutions.
Formula:
Assume that the input tensor (input) has shape [N, inC, inH, inW] and the output tensor (out) has shape [N, outC, outH, outW]. The output height (outH) and width (outW) are computed as:
For standard convolution, the sampling coordinates are:
For deformable convolution with the given offset, the deformed coordinates are:
The value at the deformed location is computed using bilinear interpolation:
The final convolution output is given by:
Each operator has calls. First, aclnnDeformableConv2dGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation flow. Then, aclnnDeformableConv2d is called to perform computation.
Parameters
[object Object]Returns
[object Object]: status code. For details, see .The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
- Deterministic computation:
- aclnnDeformableConv2d defaults to a deterministic implementation.
The following example is for reference only. For details, see .