Commit 49a0ae55 authored by pawelpiotrowicz's avatar pawelpiotrowicz Committed by Scott Cyphers

no_fork : Remove allocation for empty vector (#3544)

* no_fork : Remove allication for empty vector

* style
parent d6f933d5
...@@ -95,7 +95,8 @@ namespace ngraph ...@@ -95,7 +95,8 @@ namespace ngraph
", expected ", ", expected ",
shape_size(m_shape), shape_size(m_shape),
"."); ".");
if (values.size())
{
if (type.is_integral()) if (type.is_integral())
{ {
if (type.is_signed()) if (type.is_signed())
...@@ -126,6 +127,7 @@ namespace ngraph ...@@ -126,6 +127,7 @@ namespace ngraph
} }
write_values(dvalues); write_values(dvalues);
} }
}
constructor_validate_and_infer_types(); constructor_validate_and_infer_types();
} }
......
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