anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/dtypes

import tensorflow as tf出现如下一堆乱七八糟的东西
anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/framework/dtypes_第1张图片
解决方案,找到/home/hitwh/anaconda3/envs/tensorflow/lib/python3.5/site-packages/tensorflow/python/framework目录下的dtypes.py
将_np_quint8 = np.dtype([(“quint8”, np.uint8, 1)])改为

_np_quint8 = np.dtype([("quint8", np.uint8, (1,))])

然后就正常了
在这里插入图片描述
参考链接: https://blog.csdn.net/qq_41975844/article/details/99622948

你可能感兴趣的:(tensorflow)