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

Provide stmt name for auto-diff related assert info #3863

Closed
erizmr opened this issue Dec 23, 2021 · 0 comments
Closed

Provide stmt name for auto-diff related assert info #3863

erizmr opened this issue Dec 23, 2021 · 0 comments
Assignees
Labels
feature request Suggest an idea on this project

Comments

@erizmr
Copy link
Contributor

erizmr commented Dec 23, 2021

Provide stmt name for auto-diff related assert info for basic_verify

TI_ASSERT_INFO(
          found,
          "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);
    }
TI_ASSERT_INFO(stmt->parent == current_block_,
               "stmt({})->parent({}) != current_block({})", stmt->id,
               fmt::ptr(stmt->parent), fmt::ptr(current_block_));
@erizmr erizmr added the feature request Suggest an idea on this project label Dec 23, 2021
@erizmr erizmr self-assigned this Dec 23, 2021
@erizmr erizmr closed this as completed Dec 27, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature request Suggest an idea on this project
Projects
None yet
Development

No branches or pull requests

1 participant