未验证 提交 9eff1a67 编写于 作者: J Jacek Czaja 提交者: GitHub

Added missing format of oneDNN (#29670)

上级 572810ee
...@@ -277,6 +277,10 @@ inline mkldnn::memory::format_tag GetMKLDNNFormat( ...@@ -277,6 +277,10 @@ inline mkldnn::memory::format_tag GetMKLDNNFormat(
strides[3] >= strides[4] && strides[4] >= strides[1]) { strides[3] >= strides[4] && strides[4] >= strides[1]) {
return mkldnn::memory::format_tag::Acdeb8a; 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) { } else if (inner_blks[0] == 8 && inner_idxs[0] == 1) {
if (strides[0] >= strides[1] && strides[1] >= strides[2] && if (strides[0] >= strides[1] && strides[1] >= strides[2] &&
strides[2] >= strides[3] && strides[3] >= strides[4]) { strides[2] >= strides[3] && strides[3] >= strides[4]) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册