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
[W 03/29/23 10:53:27.516 328640] [type_check.cpp:type_check_store@36] [$25] Global store may lose precision: u8 <- i32
File "/home/zhao/taichi/python/taichi/_kernels.py", line 24, in fill_tensor:
tensor[I] = val
^^^^^^^^^^^^^^^
However, when one tries to use ti.u8(1) to cast the constant to ti.u8 type, it raises error
TypeError: 'taichi._lib.core.taichi_python.DataType' object is not callable
The text was updated successfully, but these errors were encountered:
Issue: ##7678
There's one potential hazard: if the user mistakenly filled a ti.field
with out-of-scope values (like filling a ti.field(ti.u8) with > 255),
it's just gonna overflow silently.
Issue: #taichi-dev#7678
There's one potential hazard: if the user mistakenly filled a ti.field
with out-of-scope values (like filling a ti.field(ti.u8) with > 255),
it's just gonna overflow silently.
To reproduce:
raise the warning message
However, when one tries to use
ti.u8(1)
to cast the constant toti.u8
type, it raises errorThe text was updated successfully, but these errors were encountered: