Skip to content

Commit

Permalink
src: cpu: gemm: int8 deconv fixup
Browse files Browse the repository at this point in the history
  • Loading branch information
Alok Bakshi committed Mar 11, 2020
1 parent 91c89a9 commit ef2d652
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 @@ -769,13 +769,14 @@ status_t init_conf(jit_gemm_conv_conf_t &jcp,

jcp.outer_threading = false;

bool is_int8_conv = utils::one_of(src_d.data_type(), s32, s8, u8)
&& weights_d.data_type() == s8;

const bool is_bwd_d = jcp.prop_kind == backward_data;
const bool is_bwd_w = jcp.prop_kind == backward_weights;
const bool is_fwd = !is_bwd_d && !is_bwd_w;

bool is_int8_conv = (is_fwd ? utils::one_of(src_d.data_type(), s8, u8)
: utils::one_of(dst_d.data_type(), s8, u8))
&& weights_d.data_type() == s8;

bool is_bf16_conv = false
|| (is_fwd
&& utils::everyone_is(
Expand Down

0 comments on commit ef2d652

Please sign in to comment.