【发布时间】:2016-10-06 07:48:40
【问题描述】:
当我输入以下代码时:
mandel_numba = numba.jit(restype=uint32, argtypes=[float32, float32, uint32])(mandel)
并得到错误信息
raise DeprecationError(_msg_deprecated_signature_arg.format('argtypes'))
numba.errors.DeprecationError: Deprecated keyword argument `argtypes`. Signatures should be passed as the first positional argument.
我的 numba 版本是 0.28.0,我知道 numba 0.18 版本删除了旧的已弃用和未记录的 argtypes 并重新输入 @jit 装饰器的参数。
请帮我解决这个问题。
【问题讨论】: