Skip to content
This repository has been archived by the owner on Feb 29, 2020. It is now read-only.

Commit

Permalink
fix compilation issue
Browse files Browse the repository at this point in the history
  • Loading branch information
raggledodo committed Jan 29, 2019
1 parent a6eff01 commit f9e7691
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion llo/opt/ops_merge.hpp
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
namespace llo
{

static const std::set<age::_GENERATED_OPCODE> nnary = {
static const std::set<age::_GENERATED_OPCODE> nnary_codes = {
age::SUM,
age::PROD,
age::MIN,
Expand Down
4 changes: 2 additions & 2 deletions llo/src/const_merge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ ade::TensptrT const_merge_edit (ade::Opcode opcode, ade::ArgsT args)
return ade::TensptrT(Constant::get(
(char*) tens->data(), age::DOUBLE, temp->shape()));
}
else if (nnary.find((age::_GENERATED_OPCODE) opcode.code_) != nnary.end() &&
cargs.size() > 2)
else if (nnary_codes.find((age::_GENERATED_OPCODE)
opcode.code_) != nnary_codes.end() && cargs.size() > 2)
{
ade::TensptrT temp(ade::Functor::get(opcode, args));
auto tens = llo::eval<double>(temp);
Expand Down
4 changes: 2 additions & 2 deletions llo/src/ops_merge.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ static bool is_bijective (ade::CoordptrT coorder)

ade::TensptrT ops_merge_edit (ade::Opcode opcode, ade::ArgsT args)
{
if (nnary.end() != nnary.find((age::_GENERATED_OPCODE) opcode.code_))
if (nnary_codes.end() != nnary_codes.find((age::_GENERATED_OPCODE) opcode.code_))
{
bool merged = false;
ade::ArgsT newchildren;
Expand Down Expand Up @@ -97,7 +97,7 @@ ade::TensptrT ops_merge_edit (ade::Opcode opcode, ade::ArgsT args)
merged = true;
}
else if (arg_children.size() == 1 &&
nnary.end() != nnary.find(arg_op) &&
nnary_codes.end() != nnary_codes.find(arg_op) &&
arg_children[0].get_coorder()->is_bijective())
{
auto child = arg_children[0];
Expand Down

0 comments on commit f9e7691

Please sign in to comment.