Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[autodiff] Provide stmt name for auto-diff related assert info #3864

Merged
merged 2 commits into from
Dec 24, 2021
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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);
erizmr marked this conversation as resolved.
Show resolved Hide resolved
stmt->type(), stmt->id, op->type(), op->id);
}
visible_stmts_.back().insert(stmt);
}
Expand Down