faster-python-with-taichi
faster-python-with-taichi copied to clipboard
ti.func和ti.kernel的区别?
is_prime = ti.func(is_prime)
count_primes = ti.kernel(count_primes)
请问这里面 ti.func和ti.kernel使用依据是什么?
可以看看这里的文档:https://docs.taichi-lang.org/docs/master/syntax