-
Notifications
You must be signed in to change notification settings - Fork 2.3k
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
a bug when use autodiff: [codegen_llvm.cpp:taichi::lang::CodeGenLLVM::visit@301] from != to #1569
Comments
I change the index of for loop and add code:
|
Thanks for reporting this. If the code works well without autodiff, it's very likely that some rules here are violated: https://taichi.readthedocs.io/en/stable/differentiable_programming.html Or if it's the compiler's bug, could you please provide a minimal reproducible example so that it's easier to debug? Many thanks! |
I meet the same problem. Under the autodiff mode, the code only works well with ti.static. But the ti.static has very high computation cost when the for-loop is unrolled many times. Do you have any solution? |
I meet the same problem. Under the autodiff mode, the code only works well with ti.static. But the ti.static has very high computation cost when the for-loop is unrolled many times. Do you have any solution? |
When I use autodiff, an error message appears:
[verify.cpp:taichi::lang::IRVerifier::basic_verify@46] IR broken: stmt 8233 cannot have operand 8226.
when I close advanced_optimization, the error becomes:
[codegen_llvm.cpp:taichi::lang::CodeGenLLVM::visit@301] from != to
the code:
The text was updated successfully, but these errors were encountered: