Function Description
Operator Function
Performs convolution.
Formula
General 2D convolution calculation formula:

Parameter |
Depth |
Height |
Width |
Description |
|---|---|---|---|---|
Padding: front, top, and left |
PDL |
PHL |
PWL |
padding_l indicates the corresponding vector of paddings (l represents left). |
Padding: back, bottom, and right |
PDR |
PHR |
PWR |
padding_r indicates the corresponding vector of paddings (r represents right). |
Stride |
SD |
SH |
SW |
Stride distance, which can be set to 1 for continuous convolution. |
Dilation |
DD |
DH |
DW |
Dilation value, which can be set to 0 for non-dilated convolution. |
src |
- |
- |
- |
Input source tensor. |
weights |
- |
- |
- |
Weight tensor. |
bias |
- |
- |
- |
Bias tensor. |
dst |
- |
- |
- |
Output result tensor. |
ic |
- |
- |
- |
Input channel. |
oc |
- |
- |
- |
Output channel. |
oh |
- |
- |
- |
Output height. |
ow |
- |
- |
- |
Output width. |
kw |
- |
- |
- |
Width of the convolution kernel. |
kh |
- |
- |
- |
Height of the convolution kernel. |
Parent topic: Convolution