Commit 5203a301 authored by Jayaram Bobba's avatar Jayaram Bobba Committed by Robert Kimball

Minor bug fix in function outlining (#1056)

* Move to depth-first serialization of graph for better cache behavior

* Added comment

* Force 64 byte stack alignment to avoid crashes from unaligned AVX loads/stores

* Revert "Force 64 byte stack alignment to avoid crashes from unaligned AVX loads/stores"

This reverts commit 84346420fbd0fbd5d05a4a1e8f5fae12bdc7348b.

* revert to breadth-first serialization
parent 4135f59d
......@@ -528,6 +528,7 @@ using namespace ngraph::runtime;
unordered_map<const Node*, string> node_cache;
for (size_t i = 0; i < op_list.size(); i++)
{
// constants and parameters cannot be outlined
if (op_list[i]->is_constant() || op_list[i]->is_parameter())
{
continue;
......@@ -556,6 +557,10 @@ using namespace ngraph::runtime;
string match_function_name;
for (size_t j = i + 1; j < op_list.size(); j++)
{
if (op_list[j]->is_constant() || op_list[j]->is_parameter())
{
continue;
}
Node* op1 = op_list[i].get();
Node* op2 = op_list[j].get();
if (is_functionally_identical(*op1, *op2, node_cache))
......
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