Visible to Intel only — GUID: GUID-D909A4D6-FCE1-4BF6-8137-A5BCF4AB39D9
Visible to Intel only — GUID: GUID-D909A4D6-FCE1-4BF6-8137-A5BCF4AB39D9
ConvolutionBackwardWeights
General
ConvolutionBackwardWeights operation accepts ,
and optional weights shape as inputs, and compute the
.
Operation attributes
Attribute Name |
Description |
Value Type |
Supported Values |
Required or Optional |
---|---|---|---|---|
Controls the strides the weights tensor is moved when computing convolution |
s64 |
A s64 list containing positive values |
Required |
|
Controls number of zeros to be add to the front/top/left of spatial dimensions |
s64 |
A s64 list containing non-negative values |
Required |
|
Controls number of zeros to be add to the back/bottom/right of spatial dimensions |
s64 |
A s64 list containing non-negative values |
Required |
|
Controls the amount of stretching the kernel before convolution ( visualization link ) |
s64 |
A s64 list containing positive values (>1 means dilated convolution) |
Required |
|
Controls how the padding is calculated |
string |
none (default), same_upper , same_lower , valid |
Optional |
|
Controls how input channels and output channels are divided into |
s64 |
A positive s64 value, 1 by default |
Optional |
|
Controls how to interpret the shape of src and dst . |
string |
NCX , NXC (default) |
Optional |
|
Controls how to interpret the shape of weights . |
string |
OIX , XIO (default) |
Optional |
|
Denotes the shape of the weights tensor. |
s64 |
A s64 list containing positive values |
Optional |
Execution arguments
The inputs and outputs must be provided according to below index order when constructing an operation.
Inputs
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
src |
Required |
1 |
diff_dst |
Required |
2 |
weights_shape |
Optional |
![](/content/dam/docs/us/en/developer-guide-reference/2024-1/CFEAC816-22C8-4680-A749-833BDD5E78A4-low.png)
![](/content/dam/docs/us/en/developer-guide-reference/2024-1/32D2FC37-84D3-410F-9B3E-93AB4DA42143-low.png)
![](/content/dam/docs/us/en/developer-guide-reference/2024-1/C73A2FFC-0D0D-48C6-A382-EFB366DF5F3F-low.png)
![](/content/dam/docs/us/en/developer-guide-reference/2024-1/56DE5555-272B-4966-9CEF-4CB836450167-low.png)
![](/content/dam/docs/us/en/developer-guide-reference/2024-1/215833D7-93EE-4D86-84D3-D96050C54F6F-low.png)
Note Either weights_shape input or weights_shape attribute should be provided. If both provided, weights_shape input will precede over weights_shape attribute.
Outputs
Index |
Argument Name |
Required or Optional |
---|---|---|
0 |
diff_weights |
Required |
Supported data types
ConvolutionBackwardWeights operation supports the following data type combinations.
Src |
Diff_dst |
Diff_weights |
Weights_shape |
---|---|---|---|
f32 |
f32 |
f32 |
s32 |
bf16 |
bf16 |
bf16 |
s32 |
f16 |
f16 |
f16 |
s32 |