0
我有Numba 0.24,它支持類。如何在Numba中使用Python類
當我嘗試構建最簡單的類時,我可以想象我找到一個錯誤!發生了什麼?
from numba import jitclass
@jitclass
class foo:
x = 2
bar = foo()
---------------------------------------------------------------------------
TypeError Traceback (most recent call last)
<ipython-input-2-3e0fd8d4bd2b> in <module>()
3 class foo:
4 x = 2
----> 5 bar = foo()
TypeError: wrap() missing 1 required positional argument: 'cls'
我在這裏錯過了什麼嗎?