【发布时间】:2023-09-05 15:25:02
【问题描述】:
我在 Anaconda 中使用 Numba,不知道为什么
@jit(argtypes=[int16[:], int16[:]])
def index(ic, nc):
return ic[0] + nc[0] * (ic[1] + nc[1] * ic[2])
不起作用:
TypeError: 'type' object has no attribute '__getitem__'
但是如果我使用@autojit 而不是@jit(..) 一切都很好。
【问题讨论】: