Commit bdfa4719 authored by Jayaram Bobba's avatar Jayaram Bobba Committed by Scott Cyphers

disable squeeze layout optimizations for padded layouts (#2118)

* disable squeeze layout optimizations for padded layouts

* knob squeeze padded layouts
parent 5934fc61
......@@ -1311,7 +1311,18 @@ namespace ngraph
}
if (mkldnn_utils::is_mkldnn_padded_layout(md, squeezed_axis))
{
return false;
}
if (std::getenv("NGRAPH_CPU_ENABLE_SQUEEZE_PADDED_LAYOUTS") == nullptr)
{
if (mkldnn_utils::is_mkldnn_padded_layout(
md, ngraph::get_default_order(input_shape)))
{
return false;
}
}
return true;
}
......
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