Added missing oneDNN format (#25450)

test=develop
fix_copy_if_different
Jacek Czaja 5 years ago committed by GitHub
parent 172d4ecb6c
commit a5d1592f6c
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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;
}

Loading…
Cancel
Save