Skip to content

Commit

Permalink
[FORK][FIX][x64] enable ncx8c->ncx8c support for small input channel …
Browse files Browse the repository at this point in the history
…in jit sse41 conv

CVS-ticket https://jira.devtools.intel.com/browse/CVS-125793
openvino PR openvinotoolkit/openvino#23232

Signed-off-by: HU Yuan2 <[email protected]>
  • Loading branch information
tiger100256-hu committed Apr 17, 2024
1 parent 26633ae commit b134a44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/cpu/x64/jit_sse41_conv_kernel_f32.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -492,7 +492,7 @@ status_t jit_sse41_conv_fwd_kernel_f32::init_conf(jit_conv_conf_t &jcp,
sum_requires_scale_one, sum_requires_zp_zero));
if (!post_ops_ok_) return status::unimplemented;

const bool flat = one_of(jcp.ic, 1, 2, 3);
const bool flat = one_of(jcp.ic, 1, 2, 3) && (jcp.src_tag != dat_tag_nCx8c);
const bool mimo = !flat;

bool args_ok = true
Expand Down
2 changes: 1 addition & 1 deletion src/cpu/x64/jit_sse41_convolution.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -85,7 +85,7 @@ struct jit_sse41_convolution_fwd_t : public primitive_t {
&& IMPLICATION(curr_dst_tag != dat_tag_nxc,
dst_d.format_kind() == format_kind::any)
&& utils::one_of(dat_tag_nxc, curr_src_tag, curr_dst_tag);
const bool flat = utils::one_of(IC(), 1, 2, 3);
const bool flat = utils::one_of(IC(), 1, 2, 3) && (curr_src_tag != dat_tag_nCx8c);
auto src_tag = is_data_layout_nxc ? dat_tag_nxc
: flat ? dat_tag_ncx
: dat_tag_nCx8c;
Expand Down

0 comments on commit b134a44

Please sign in to comment.