Skip to content

Commit

Permalink
requested changes
Browse files Browse the repository at this point in the history
Change-Id: Iac69766428d5b9783279cb02a57064fd82842001
  • Loading branch information
d-smirnov committed Apr 13, 2021
1 parent 8c5f8e4 commit 0c1022b
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions include/tvm/relay/expr_functor.h
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@
#include <tvm/relay/op.h>

#include <deque>
#include <stack>
#include <string>
#include <unordered_map>
#include <utility>
Expand Down Expand Up @@ -449,7 +448,7 @@ void ExpandDataflow(Expr expr, FCheckVisited fcheck_visited, FVisitLeaf fvisit_l
std::deque<v_info> stack;
auto fpush_to_stack = [&fcheck_visited, &stack](const Expr& expr) {
if (!fcheck_visited(expr)) {
stack.push_front(std::move(v_info(expr)));
stack.emplace_front(v_info(expr));
}
};

Expand Down Expand Up @@ -487,7 +486,7 @@ void ExpandDataflow(Expr expr, FCheckVisited fcheck_visited, FVisitLeaf fvisit_l
} else if (const TupleGetItemNode* op = expr.as<TupleGetItemNode>()) {
result.push_back(op->tuple);
}
return std::move(result);
return result;
};
ExpandDataflow(expr, fcheck_visited, fvisit_leaf, fexpand_expr);
}
Expand Down

0 comments on commit 0c1022b

Please sign in to comment.