/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py
想测试一下 安装的tensorflow如何
import tensorflow as tf出现如下一堆乱七八糟的东西
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:526: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_qint8 = np.dtype([(“qint8”, np.int8, 1)])
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:527: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_quint8 = np.dtype([(“quint8”, np.uint8, 1)])
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:528: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_qint16 = np.dtype([(“qint16”, np.int16, 1)])
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:529: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_quint16 = np.dtype([(“quint16”, np.uint16, 1)])
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:530: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
_np_qint32 = np.dtype([(“qint32”, np.int32, 1)])
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py:535: FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated; in a future version of numpy, it will be understood as (type, (1,)) / ‘(1,)type’.
np_resource = np.dtype([(“resource”, np.ubyte, 1)])
仔细看看 时这个dtypes.py文件在作怪。
找到它 ,cd /home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework
然后 vim dtypes.py
然后将
_np_qint8 = np.dtype([(“qint8”, np.int8, 1)])
_np_quint8 = np.dtype([(“quint8”, np.uint8, 1)])
_np_qint16 = np.dtype([(“qint16”, np.int16, 1)])
_np_quint16 = np.dtype([(“quint16”, np.uint16, 1)])
_np_qint32 = np.dtype([(“qint32”, np.int32, 1)])
改为
_np_qint8 = np.dtype([(“qint8”, np.int8, (1,))])
_np_quint8 = np.dtype([(“quint8”, np.uint8, (1,))])
_np_qint16 = np.dtype([(“qint16”, np.int16, (1,))])
_np_quint16 = np.dtype([(“quint16”, np.uint16, (1,))])
_np_qint32 = np.dtype([(“qint32”, np.int32, (1,))])
注意句点和逗号 的区别。输入法 英文
要看清楚 改的哪里。
然后就从新执行import tensorflow as
OK
/home/image/.conda/envs/tensorflow/lib/python3.6/site-packages/tensorflow/python/framework/dtypes.py相关推荐
- envs\TensorFlow2.0\lib\site-packages\tensorflow\python\framework\dtypes.py:516: FutureWarning 解决方案
import tensorflow后的完整报错: D:\Anaconda3\envs\TensorFlow2.0\lib\site-packages\tensorflow\python\framewo ...
- OSError: [WinError 1455] 页面文件太小,无法完成操作。 Error loading “C:\Users\rg\.conda\envs\pytorch\lib\site
问题描述: OSError: [WinError 1455] 页面文件太小,无法完成操作. Error loading "C:\Users\rg\.conda\envs\pytorch\li ...
- OSError: /home/yukang/anaconda3/envs/fsgan/lib/python3.9/site-packages/torch/lib/../../nvidia/cublas
OSError: /home/yukang/anaconda3/envs/fsgan/lib/python3.9/site-packages/torch/lib/../../nvidia/cublas ...
- ImportError: /usr/local/anaconda3/envs/py38/lib/python3.8/site-packages/mmcv/_ext.cpython-38-x86_64-
在安装mmcv-full后,进行单机多卡分布式训练时遇到的问题,主要有两个: ImportError: /usr/local/anaconda3/envs/py38/lib/python3.8/sit ...
- python3.5/site-packages/tensorflow/python/framework/dtypes
import tensorflow as tf出现如下一堆乱七八糟的东西 解决方案,找到/home/hitwh/anaconda3/envs/tensorflow/lib/python3.5/site ...
- File “/home/dh/anaconda3/envs/zyq1/lib/python3.6/site-packages/tensorboard/compat/proto/tensor_shape
今天想换一台服务器跑程序,首先得创建环境,结果各种坑.按照pcs环境要求安装好各种包之后,运行程序就出现了错误 那怎么办呢? 百度吧!有的说是protobuf和tensorboard版本不匹配,我就把 ...
- 运行tensorflow代码出现dtypes.py:516: FutureWarning: Passing (type, 1) or '1type的解决方法(亲测)
使用tensorflow写的深度学习模型,在服务器上跑模型时老是弹出/anaconda3/envs/tf/lib/python3.5/site-packages/tensorflow/python/f ...
- anaconda调用TensorFlow出现dtypes.py:526: FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of typ
在anaconda prompt调用TensorFlow,出现D:\anaconda\lib\site-packages\tensorflow\python\framework\dtypes.py: ...
- pip install时出现问题,ERROR: Could not install packages due to an OSError: ./lib/python3.7/site-packages
问题 pip install安装库时,报下面的错误 ERROR: Could not install packages due to an OSError: [Errno 2] No such fil ...
最新文章
- 利用Use Case为系统行为建模(1)
- Fast Radial Symmetry Transform/快速径向对称变换
- 【转】STO跨公司转储流程
- git工具 将源码clone到本地指定目录的三种方式
- 2017-03-10Git版本回退
- 【nodejs】让nodejs像后端mvc框架(asp.net mvc)一样处理请求--参数自动映射篇(6/8)...
- python3.8怎么打开创建_Python 3.8 新功能大揭秘【新手必学】
- Python学习之路——装饰器
- exchange2013卸载
- CamOdoCal_2013-IROS_多个普通相机和里程计的内参和外参自动标定
- 关于ie浏览器的问题
- S5P4418 使用SD卡启动Android系统
- Correct the classpath of your application so that it contains a single, compatible version of 包名
- android 日志打印内容完全相同,Log的chatty机制,identical 391 lines
- 题解 P3387 【【模板】缩点】
- php 二维数组为空,php 判断数组是否为空的几种方法
- Bugku旧平台misc writeup
- springboot项目推荐的打包方式以及springboot项目的瘦身!!!!
- MQ系列传感器电路图
- nCode:DesignLife案例教程十九