Commit 4e2b2977 authored by Pruthvi's avatar Pruthvi Committed by Scott Cyphers

dont create mkldnn memory desc if dims == 0 (#1462)

parent 7ac647ac
......@@ -251,6 +251,10 @@ bool runtime::cpu::mkldnn_utils::can_create_mkldnn_md(const Shape& dims,
const ngraph::element::Type type)
{
auto it = s_mkldnn_data_type_map.find(type);
if (dims.size() == 0)
{
return false;
}
if (it == s_mkldnn_data_type_map.end() || it->second == mkldnn::memory::data_type::data_undef)
{
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment