numba 的缺点
文章目录
先贴链接:Constructs
Supported constructs:
- conditional branch:
if .. elif .. else - loops:
while,for .. in,break,continue - basic generator:
yield - assertion:
assert
Partially supported constructs:
- exceptions:
try .. except,raise,elseandfinally(See details in this section) - context manager:
with(only support numba.objmode()) - list comprehension (see details in this section)
Unsupported constructs:
- async features:
async with,async forandasync def - class definition:
class(except for @jitclass) - set, dict and generator comprehensions
- generator delegation:
yield from
可以看到, numba 不支持 dict !!!
所以 numba 的最大的缺点就是不支持 dict
评论
登录后参与技术讨论,分享你的经验与见解。
登录 / 注册暂无评论