Description: DepthwiseConv2D is a 2D depthwise convolution operation. In this operation, each input channel is convolved with an independent kernel (called a depthwise kernel).
Formula:
Assume that the shape of self is and the shape of out is . The output of each convolution kernel is computed as:
Where denotes the convolution operation, is the batch size, is the number of channels, and and represent the width and height, respectively.
Each operator has calls. First, aclnnConvDepthwise2dGetWorkspaceSize is called to obtain the workspace size required for computation and the executor that contains the operator computation flow. Then, aclnnConvDepthwise2d is called to perform computation.
Parameters
[object Object]Returns
aclnnStatus: status code. For details, see .
The first-phase API implements input parameter verification. The following errors may be thrown.
[object Object]
Deterministic computation:
- aclnnConvDepthwise2d defaults to a deterministic implementation.
The following example is for reference only. For details, see .