Skip to content

Commit

Permalink
[autodiff] Provide stme name and id for assert info
Browse files Browse the repository at this point in the history
  • Loading branch information
erizmr committed Dec 23, 2021
1 parent 9665894 commit 287ed44
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->type(), op->type());
stmt->type(), stmt->id, op->type(), op->id);
}
visible_stmts_.back().insert(stmt);
}
Expand Down

0 comments on commit 287ed44

Please sign in to comment.