Commit 7e648417 by 雾雨魔理沙 Committed by Tianqi Chen

[Relay] remove unneeded VisitExpr (#3239)

parent d3958e11
......@@ -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);
......
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