Commit 4f2316e8 authored by Nick Korovaiko's avatar Nick Korovaiko Committed by Scott Cyphers

rename const_ops to simplifier_ops (#933)

parent 2ce06602
...@@ -218,7 +218,7 @@ static bool simplify_sum(std::shared_ptr<Node> n) ...@@ -218,7 +218,7 @@ static bool simplify_sum(std::shared_ptr<Node> n)
} }
static std::unordered_map<std::type_index, std::function<bool(std::shared_ptr<Node>)>> static std::unordered_map<std::type_index, std::function<bool(std::shared_ptr<Node>)>>
initialize_const_values_to_ops() initialize_ops_to_simplifiers()
{ {
return std::unordered_map<std::type_index, std::function<bool(std::shared_ptr<Node>)>>({ return std::unordered_map<std::type_index, std::function<bool(std::shared_ptr<Node>)>>({
{TI(op::Add), simplify_add}, {TI(op::Add), simplify_add},
...@@ -228,7 +228,7 @@ static std::unordered_map<std::type_index, std::function<bool(std::shared_ptr<No ...@@ -228,7 +228,7 @@ static std::unordered_map<std::type_index, std::function<bool(std::shared_ptr<No
} }
static std::unordered_map<std::type_index, std::function<bool(std::shared_ptr<Node>)>> static std::unordered_map<std::type_index, std::function<bool(std::shared_ptr<Node>)>>
ops_to_const_values = initialize_const_values_to_ops(); ops_to_simplifiers = initialize_ops_to_simplifiers();
bool ngraph::pass::AlgebraicSimplification::run_on_function(std::shared_ptr<ngraph::Function> f) bool ngraph::pass::AlgebraicSimplification::run_on_function(std::shared_ptr<ngraph::Function> f)
{ {
...@@ -241,8 +241,8 @@ bool ngraph::pass::AlgebraicSimplification::run_on_function(std::shared_ptr<ngra ...@@ -241,8 +241,8 @@ bool ngraph::pass::AlgebraicSimplification::run_on_function(std::shared_ptr<ngra
} }
const Node& node = *n; const Node& node = *n;
auto eh = ops_to_const_values.find(TI(node)); auto eh = ops_to_simplifiers.find(TI(node));
if (eh == ops_to_const_values.end()) if (eh == ops_to_simplifiers.end())
{ {
continue; continue;
} }
......
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