Skip to content

Commit

Permalink
cpu: conv: fix f32 1x1 gemm-based convolution with padding
Browse files Browse the repository at this point in the history
  • Loading branch information
densamoilov committed Oct 31, 2018
1 parent 24c1aa9 commit ef9993c
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions src/cpu/gemm_convolution_utils.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -377,9 +377,10 @@ void init_conf(
jcp.wei_adj_scale = (!jcp.signed_input || mayiuse(avx512_core_vnni))
? 1.0f
: (1.0f / 2.0f);
jcp.im2col_sz = !(jcp.oh == jcp.ih && jcp.ow == jcp.iw
&& jcp.od == jcp.id && jcp.ks == 1
&& !jcp.signed_input)
jcp.im2col_sz = !everyone_is(true,
jcp.ow == jcp.iw, jcp.oh == jcp.ih, jcp.od == jcp.id,
jcp.stride_w == 1, jcp.stride_h == 1, jcp.stride_d == 1,
jcp.ks == 1, !jcp.signed_input)
? (ptrdiff_t)jcp.ic * jcp.ks * jcp.os
: 0;

Expand Down

0 comments on commit ef9993c

Please sign in to comment.