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

Added missing oneDNN format (#25450)

test=develop
上级 172d4ecb
......@@ -178,6 +178,9 @@ inline mkldnn::memory::format_tag GetMKLDNNFormat(
if (strides[0] >= strides[1] && strides[1] >= strides[2] &&
strides[2] >= strides[3]) {
return mkldnn::memory::format_tag::nchw;
} else if (strides[2] >= strides[3] && strides[3] >= strides[1] &&
strides[1] >= strides[0]) {
return mkldnn::memory::format_tag::cdba;
} else {
return mkldnn::memory::format_tag::nhwc;
}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册