2
我使用Numba與蟒蛇,不知道爲什麼Numba - 類型錯誤: '類型' 對象有沒有屬性「__getitem__
@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(..)
一切都很好。
大,爲感謝響應! – blob