Mocki
Mocki
how do you fix it?
What if I add this static method to class Matrix(TaichiOperations)? Maybe like this: ```python @_gen_swizzles class Matrix(TaichiOperations): def __init__(self, ...): pass ... @staticmethod def test(v): print(v[0]) ``` Here, I want...
Hi, @strongoier, I implement some built-in python method, the link is https://github.com/Morcki/taichi/commit/8309cd5c067b1d89a6bfd8d8e908466ae7fda90f However, it runs too slowly in taichi scope(slower even than python), may you help to give some suggestions...
Here is the pytest result, it takes 345.05s to run the 6 tests, which I think it shouldn't take that too long. Because there isn't such complex caculations. The math...
Thanks a lot! I will try your suggestions Yes, it indeed works, and reduce from 345s to just 17s.
On Track of Correctness Tasklist: https://github.com/taichi-dev/taichi/issues/5426#:~:text=%C2%A0%235277%20).-,Correctness,-Ensure%20any%20kernel
yeah, not urgent for this cause I can handle it in other way. but we need to fix this a bit later.
The key point about this problem is `unused = ti.field(ti.f32)`. In this python script, `pos` which you define it as a ti.Vector.field, is on ti.root.snode_tree_0. After you run `set_x` kernel,...
@neozhaoliang Sorry for not noticing what we have done, I think we need to merge all those into one place. (Maybe need a meeting to talk about it)
> > I'm afraid we have several rotation implemented in different places now: > > > > 1. https://github.com/taichi-dev/taichi/blob/master/python/taichi/lang/matrix.py#L1081 > > 2. https://github.com/taichi-dev/taichi/blob/master/python/taichi/math/mathimpl.py#L497 > > 3. https://github.com/taichi-dev/taichi/blob/master/python/taichi/math/mathimpl.py#L1081 > > >...