Commit dfae57c1 authored by Jaikrishnan Menon's avatar Jaikrishnan Menon Committed by Scott Cyphers

CPU: Fix element count calculation (#850)

parent 041dd524
......@@ -58,11 +58,8 @@ namespace ngraph
auto arg0_rank = arg0_shape.size();
auto arg1_rank = arg1_shape.size();
auto src_size = 1;
for (size_t i = 0; i < node->get_input_shape(0).size(); i++)
{
src_size *= arg0_shape[0];
}
auto src_size = shape_size(arg0_shape);
// insert Add as MKLDNN op, only if the src_size is big. this is to avoid MKLDNN overhead
// for smaller tensor sizes
if (node->get_input_element_type(0) == element::f32 &&
......
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