Skip to content

Commit

Permalink
[autodiff] Handle return statement (taichi-dev#7389)
Browse files Browse the repository at this point in the history
Issue: taichi-dev#7378

### Brief Summary
  • Loading branch information
erizmr authored and quadpixels committed May 13, 2023
1 parent e04b866 commit e2b3f51
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions taichi/transforms/auto_diff.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -635,6 +635,10 @@ class ADTransform : public IRVisitor {
// do nothing
}

void visit(ReturnStmt *stmt) override {
// do nothing
}

void visit(WhileControlStmt *stmt) override {
TI_NOT_IMPLEMENTED
}
Expand Down

0 comments on commit e2b3f51

Please sign in to comment.