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
[Taichi] version 1.1.3, llvm 10.0.0, commit 1262a70a, linux, python 3.8.10
[Taichi] Starting on arch=x64
[W 10/14/22 01:19:36.809 109105] [type_check.cpp:type_check_store@36] [$10] Global store may lose precision: u8 <- i32
File "/home/ubuntu/.local/lib/python3.8/site-packages/taichi/_funcs.py", line 623, in field_fill_taichi_scope:
F[I] = val
^^^^^^^^^^
[Taichi] version 1.1.3, llvm 10.0.0, commit 1262a70a, linux, python 3.8.10
[Taichi] Starting on arch=x64
Traceback (most recent call last):
File "test.py", line 13, in <module>
foo()
File "/home/ubuntu/.local/lib/python3.8/site-packages/taichi/lang/kernel_impl.py", line 917, in wrapped
raise type(e)('\n' + str(e)) from None
taichi.lang.exception.TaichiCompilationError:
File "test.py", line 10, in foo:
img.fill(ti.u8(0))
^^^^^^^^^^^^^^^^^^
Traceback (most recent call last):
File "/home/ubuntu/.local/lib/python3.8/site-packages/taichi/lang/ast/ast_transformer_utils.py", line 25, in __call__
return method(ctx, node)
File "/home/ubuntu/.local/lib/python3.8/site-packages/taichi/lang/ast/ast_transformer.py", line 521, in build_Call
node.ptr = func(*args, **keywords)
File "/home/ubuntu/.local/lib/python3.8/site-packages/taichi/lang/matrix.py", line 1654, in fill
assert len(val) == self.n
TypeError: object of type 'Expr' has no len()
The text was updated successfully, but these errors were encountered:
yuanming-hu
changed the title
Zero-fill u8 fields either gets warning or error
Zero-filling u8 (Vector) fields either gets warning or error
Oct 13, 2022
Issue: #6318
### Brief Summary
The implementation and tests have been refactored by the way to ease
future maintenance efforts.
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Issue: taichi-dev#6318
### Brief Summary
The implementation and tests have been refactored by the way to ease
future maintenance efforts.
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
To Reproduce
Case 1
Output:
Case 2
This one works fine.
Case 3
Output:
The text was updated successfully, but these errors were encountered: