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.0.1, llvm 10.0.0, commit ecc0521f, linux, python 3.8.10
[Taichi] Starting on arch=x64
[W 04/22/22 13:25:16.293 193499] [type_check.cpp:visit@223] [$8] Global store may lose precision: i32 <- f32, at
File "/home/xuyi15/taichi/python/taichi/lang/ast/transform.py", line 6, in transform_tree
ASTTransformer()(ctx, tree)
File "/home/xuyi15/taichi/python/taichi/lang/ast/ast_transformer_utils.py", line 20, in __call__
return method(ctx, node)
File "/home/xuyi15/taichi/python/taichi/lang/ast/ast_transformer.py", line 568, in build_Module
build_stmt(ctx, stmt)
File "/home/xuyi15/taichi/python/taichi/lang/ast/ast_transformer_utils.py", line 20, in __call__
return method(ctx, node)
File "/home/xuyi15/taichi/python/taichi/lang/ast/ast_transformer.py", line 516, in build_FunctionDef
build_stmts(ctx, node.body)
File "/home/xuyi15/taichi/python/taichi/lang/ast/ast_transformer.py", line 1223, in build_stmts
build_stmt(ctx, stmt)
File "/home/xuyi15/taichi/python/taichi/lang/ast/ast_transformer_utils.py", line 20, in __call__
return method(ctx, node)
File "/home/xuyi15/taichi/python/taichi/lang/ast/ast_transformer.py", line 89, in build_Assign
ASTTransformer.build_assign_unpack(ctx, node_target, values,
File "/home/xuyi15/taichi/python/taichi/lang/ast/ast_transformer.py", line 106, in build_assign_unpack
return ASTTransformer.build_assign_basic(ctx, node_target, values,
File "/home/xuyi15/taichi/python/taichi/lang/ast/ast_transformer.py", line 153, in build_assign_basic
var._assign(value)
File "/home/xuyi15/taichi/python/taichi/lang/common_ops.py", line 262, in _assign
return ops.assign(self, other)
File "/home/xuyi15/taichi/python/taichi/lang/ops.py", line 118, in wrapped
return imp_foo(a, b)
However, the stack trace info is around logic in Taichi's ASTTransformer. Users cannot know where the cast actually happens.
The text was updated successfully, but these errors were encountered:
Describe the bug
After #4834, the following code snippet,
will be warned about implicit type cast:
However, the stack trace info is around logic in Taichi's ASTTransformer. Users cannot know where the cast actually happens.
The text was updated successfully, but these errors were encountered: