The definition is
@ti.kernel def nn1(f: ti.i32, t: ti.i32): # hidden 1.
f is a param from the function calling it and
t is the current index in for loop.
The call stack goes like this:
File "D:\anaconda3\lib\site-packages\taichi\lang\kernel.py", line 287, in __call__ return self.compiled_functions[key](*args)
File "D:\anaconda3\lib\site-packages\taichi\lang\kernel.py", line 243, in func__ raise KernelArgError(i, needed, provided)
taichi.lang.kernel.KernelArgError: (0, DataType.int32, <class 'taichi.lang.expr.Expr'>)
I substitute both params for zero and get similar errors that only differ on 0 and 1.
I am not sure if it was some kind of AST stuff, but I suppose the kernel requires me to pass in two integer parameters and both of them are expression now. Could you tell me what should I do to convert the type(perhaps explicitly)?