【numba 的缺点】先贴链接:Constructs
Supported constructs:
- conditional branch:
if .. elif .. else
- loops:
while
,for .. in
,break
,continue
- basic generator:
yield
- assertion:
assert
- exceptions:
try .. except
,raise
,else
andfinally
(See details in this section) - context manager:
with
(only support numba.objmode()) - list comprehension (see details in this section)
- async features:
async with
,async for
andasync def
- class definition:
class
(except for @jitclass) - set, dict and generator comprehensions
- generator delegation:
yield from
所以 numba 的最大的缺点就是不支持 dict
推荐阅读
- 大数据|刚转行的运营人做哪些副业更简单,并且更赚钱()
- 遥感数据python编程|python读取nc数据并绘图
- 机器学习|基于LSTM的IMDB电影评论情感分析
- 协程做并行也需要加锁吗()
- Data|Web Scraping with Beautiful Soup for Data Scientist
- nameko 是一个服务一个 amqp 连接,还是每个队列 work 函数一个 amqp 连接()
- 机器学习和深度学习|RealSense D435 的开发日记(API 汇总)
- 机器学习和深度学习|RealSense D435 的开发日记(pyrealsense小实战项目)
- 机器学习和深度学习|tensorflow的安装(要注意版本哦)