Skip to content

Commit

Permalink
save
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame committed Jun 28, 2019
1 parent 837be95 commit 501d737
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 1 deletion.
1 change: 1 addition & 0 deletions src/relay/pass/let_list.h
Original file line number Diff line number Diff line change
Expand Up @@ -133,6 +133,7 @@ class LetList {
return f(ll->Push(e));
});
}

private:
std::vector<std::pair<Var, Expr> > lets_;
bool used_ = false;
Expand Down
4 changes: 3 additions & 1 deletion src/relay/pass/to_cps.cc
Original file line number Diff line number Diff line change
Expand Up @@ -81,7 +81,9 @@ Function ToCPS(const Function& e, const Module& m, VarMap* vm, CPSMap* cm) {
VarMap* vm;
CPSMap* cm;
Expr VisitExpr_(const LetNode* op, const MCont& k) final {
return VisitExpr(op->value, [&](const Expr& v) { return LetNode::make(remap(op->var), v, VisitExpr(op->body, k)); });
return VisitExpr(op->value, [&](const Expr& v) {
return LetNode::make(remap(op->var), v, VisitExpr(op->body, k));
});
}

Expr VisitExpr_(const FunctionNode* op, const MCont& k) final {
Expand Down

0 comments on commit 501d737

Please sign in to comment.