Skip to content

Commit

Permalink
[autodiff] Provide stmt name for auto-diff related assert info (#3864)
Browse files Browse the repository at this point in the history
  • Loading branch information
erizmr authored Dec 24, 2021
1 parent e550d43 commit 65060be
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions taichi/analysis/verify.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ class IRVerifier : public BasicStmtVisitor {
}
TI_ASSERT_INFO(
found,
"IR broken: stmt {} cannot have operand {}."
"IR broken: stmt {} {} cannot have operand {} {}."
" If you are using autodiff, please check"
" https://docs.taichi.graphics/lang/articles/advanced/"
"differentiable_programming#kernel-simplicity-rule"
" If it doesn't help, please report this bug by opening an issue at"
" https://github.com/taichi-dev/taichi to help us improve."
" Thanks in advance!",
stmt->id, op->id);
stmt->type(), stmt->id, op->type(), op->id);
}
visible_stmts_.back().insert(stmt);
}
Expand Down

0 comments on commit 65060be

Please sign in to comment.