Skip to content

Commit

Permalink
[Relay] remove unneeded VisitExpr (apache#3239)
Browse files Browse the repository at this point in the history
  • Loading branch information
MarisaKirisame authored and Wei Chen committed Jun 26, 2019
1 parent 1e66d2f commit 51a2d64
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/relay/pass/gradient.cc
Original file line number Diff line number Diff line change
Expand Up @@ -279,7 +279,7 @@ struct ReverseAD : ExprMutator {
}
std::vector<Expr> orig_args;
for (const auto& arg : args) {
orig_args.push_back(GetField(VisitExpr(arg), 0));
orig_args.push_back(GetField(arg, 0));
}
Expr orig = CallNode::make(op->op, orig_args, op->attrs, op->type_args);
Var orig_var = ll->Push(orig);
Expand Down

0 comments on commit 51a2d64

Please sign in to comment.