Skip to content

Commit

Permalink
Update device_annotation.cc (apache#5291)
Browse files Browse the repository at this point in the history
  • Loading branch information
weireweire authored and Trevor Morris committed Apr 16, 2020
1 parent fbffeb8 commit 70873dc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/relay/transforms/device_annotation.cc
Original file line number Diff line number Diff line change
Expand Up @@ -140,10 +140,10 @@ class RewriteAnnotation : public ExprMutator {
}
}

Expr VisitExp_(const TupleNode* op) {
Expr VisitExpr_(const TupleNode* op) {
Array<Expr> fields;
bool annotated = false;
for (const auto& field : fields) {
for (const auto& field : op->fields) {
annotated |= NeedDeviceCopy(field.operator->(), op);
fields.push_back(GetDeviceCopyExpr(field, op));
}
Expand Down

0 comments on commit 70873dc

Please sign in to comment.