未验证 提交 8f37c66f 编写于 作者: J jakpiase 提交者: GitHub

Added concat workaround for vivo model (#45091)

* concat workaround

* CI rerun
上级 7f3c7aeb
...@@ -89,7 +89,8 @@ class ConcatMKLDNNHandler ...@@ -89,7 +89,8 @@ class ConcatMKLDNNHandler
// formats are being set in inputs. In that scenario we are enforcing using // formats are being set in inputs. In that scenario we are enforcing using
// a dense format, because it is the most common one and should be the best // a dense format, because it is the most common one and should be the best
// in terms of the performance // in terms of the performance
if (dst_dims[concat_axis] == static_cast<int64_t>(srcs_md.size())) { const auto src0_tz = srcs_md[0].dims();
if (std::find(src0_tz.begin(), src0_tz.end(), 1) != src0_tz.end()) {
dst_md = memory::desc( dst_md = memory::desc(
dst_dims, dt, platform::GetPlainMKLDNNFormat(dst_dims.size())); dst_dims, dt, platform::GetPlainMKLDNNFormat(dst_dims.size()));
} else { } else {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册