-
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
Unnecessary "Possible loss of precision" warning #8559
Comments
I met the exactly same situation. My wild guess is that the type of field cells probably is not recognized in the python scope. Doing the assignment in a taichi kernel can circumvent the warning.
|
Maybe this issue can be closed. They have fixed this bug in version 1.7.2 (#8553). |
i still can see the issue in taichi 1.7.2
|
Describe the bug
When assigning a constant to a field cell, Taichi emits a warning about possible loss of precision even though it's possible to determine at compile time that this is not the case
To Reproduce
Log/Screenshots
Additional comments
Maybe I can just disable this check and runtime warning? It has a performance impact as it's emitted each time I do such an assignment.
The text was updated successfully, but these errors were encountered: