我正在学习伦巴,并遇到这种“奇怪”的行为,我不明白。我尝试使用以下代码(在iPython中,用于计时):import numba as nb
def nb_len(seq): return len(seq)
t = np.random.rand(1000)
%timeit py_len(t)258 ns ± 1.37 ns p
我试图在一些函数中使用OpenCV,我用一些Numba装饰器(例如nopython=True, parallel=True)对其进行了注释。我在Jetson上运行这个程序,它与一起闪现。To see Python/NumPy features supported by the latest release of Numba visit:
http://numba.pydata.org/numba-doc/dev/reference/py