python numpy dtype数据类型转换

python numpy  dtype数据类型转换

参考:

浅谈python 中的 type(), dtype(), astype()的区别 - 腾讯云开发者社区-腾讯云

 

标准做法:

aaa = np.random.poisson(1, size=(100, 2000)).astype(np.float32)

posted @ 2022-08-15 14:20  bH1pJ  阅读(50)  评论(0编辑  收藏  举报