![](https://img-blog.csdnimg.cn/20201014180756923.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
tensorflow
w妙音
这个作者很懒,什么都没留下…
展开
-
eventlet在ubuntu上出现OSError protocol not found
描述tensorflow的nvidia docker镜像使用ubuntu16.04, ubuntu是精简之后的,有些包可能没有。在上面运行eventlet会出现下面问题错误内容Traceback (most recent call last): File "/app/defect-client/defect_client/cmd/wafer-worker.py", line 14, in <module> import eventlet File "/usr/local/原创 2020-06-21 09:25:11 · 1236 阅读 · 1 评论 -
protobuf序列化numpy
说明protobuf处理不能直接处理numpy,需要先把numpy转为字节numpy转字节import numpy as npfrom io import BytesIOA = np.array([ 1, 2, 3, 4, 4, 2, 3, 4, 5, 3, 4, 5, 6, 7, 2, 5, 6, 7, 8, 9, 6, 7, 8, 9, 0 ]).reshape(5,5) # numpy 转bytesnda_bytes原创 2020-06-15 15:05:38 · 1672 阅读 · 0 评论 -
tensorflow资源耗净 Resource exhausted OOM when allocating tensor with shape
描述tensorflow跑训练集经常会遇到错误Resource exhausted: OOM when allocating tensor with shape[64,33,33,2048]错误内容tensorflow.python.framework.errors_impl.ResourceExhaustedError: 2 root error(s) found. (0) Resou...原创 2020-05-01 13:04:23 · 4023 阅读 · 0 评论