Skip to content

Commit

Permalink
gpu: jit: conv: always allow src reorder from NCHW
Browse files Browse the repository at this point in the history
  • Loading branch information
echeresh committed Nov 30, 2022
1 parent df6f2e3 commit d0c14c2
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/gpu/jit/conv/config.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -849,6 +849,7 @@ status_t conv_config_t::init_data_layouts(convolution_pd_t *conv_pd) {
bool allow_dst_reorder = false;
bool src_abx = matches_tag(src_md, "abx");
bool src_axb = matches_tag(src_md, "axb");
if (src_abx) allow_src_reorder = true;
if ((src_abx || src_axb) && (is_fwd || is_bwd_w) && is_small_ic_g1) {
allow_src_reorder = true;
}
Expand Down

0 comments on commit d0c14c2

Please sign in to comment.