Skip to content

Commit 4c05c18

Browse files
nivas-x86tprimak
authored andcommitted
src: cpu: conv: bf16: fixup zero pad consistency
1 parent 2c4ad38 commit 4c05c18

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

src/cpu/x64/jit_avx512_core_bf16_1x1_convolution.cpp

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1028,10 +1028,11 @@ void jit_avx512_core_bf16_1x1_convolution_bwd_weights_t<diff_weights_type>::
10281028
}
10291029
} else {
10301030
if (is_bf16_out) {
1031+
const auto ic_work = nstl::min(jcp.ic, ic_b_end * jcp.ic_block)
1032+
- ic_b_start * jcp.ic_block;
10311033
for_(int g = g_start; g < g_end; g++)
10321034
for (int oc_b = oc_b_start; oc_b < oc_b_end; oc_b++) {
1033-
const size_t acc_size
1034-
= (size_t)ic_b_work * jcp.ic_block * jcp.oc_block;
1035+
const size_t acc_size = (size_t)ic_work * jcp.oc_block;
10351036
const size_t off
10361037
= wht_blk_off(diff_weights_d, g, oc_b, ic_b_start);
10371038

0 commit comments

Comments
 (0)