You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
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
$ python tests/assign_precision.py
[Taichi] version 1.7.1, llvm 15.0.7, commit 0f143b2f, osx, python 3.10.9
[Taichi] Starting on arch=arm64
[W 07/10/24 11:33:51.553 33474852]
Assign may lose precision: unknown <- i8
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:
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.
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: