Skip to content

Commit

Permalink
Added missing format of oneDNN (#29670)
Browse files Browse the repository at this point in the history
  • Loading branch information
jczaja authored Dec 17, 2020
1 parent 572810e commit 9eff1a6
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions paddle/fluid/platform/mkldnn_helper.h
Original file line number Diff line number Diff line change
Expand Up @@ -277,6 +277,10 @@ inline mkldnn::memory::format_tag GetMKLDNNFormat(
strides[3] >= strides[4] && strides[4] >= strides[1]) {
return mkldnn::memory::format_tag::Acdeb8a;
}
if (strides[0] >= strides[1] && strides[1] >= strides[2] &&
strides[2] >= strides[3] && strides[3] >= strides[4]) {
return mkldnn::memory::format_tag::Abcde8a;
}
} else if (inner_blks[0] == 8 && inner_idxs[0] == 1) {
if (strides[0] >= strides[1] && strides[1] >= strides[2] &&
strides[2] >= strides[3] && strides[3] >= strides[4]) {
Expand Down

0 comments on commit 9eff1a6

Please sign in to comment.