问题
在Pycharm中运行import tensorflow as tf时报错。

解决方案
此时点开报错中的dtypes.py文件,对其进行修改。
# hard-coding of names.这里开始,修改所有以_np_q开头的代码行,同时也要修改最后一行的np_resource

# hard-coding of names.
_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_bfloat16 is defined by a module import.# Custom struct dtype for directly-fed ResourceHandles of supported type(s).
np_resource = np.dtype([("resource", np.ubyte, (1,))])

解决import tensorflow时的报错 Passing (type, 1) or ‘1type‘ as a synonym of type is deprecate相关推荐

  1. 解决python调用TensorFlow时出现FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate

    最近因为要做一个基于深度学习的人脸识别项目,要用到TensorFlow,但是下载完成后后发现import tensorflow总是出现FutureWarning: Passing (type, 1) ...

  2. TensorFlow报错FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated......(亲测)

    使用TensorFlow时报错FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a ...

  3. dtypes.py报错FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated;

    tensorflow 版本1.2.0 报错:D:\Anaconda3\envs\tfn\lib\site-packages\tensorflow\python\framework\dtypes.py: ...

  4. python调用TensorFlow时报错:FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated

    问题: 使用Tensorflow时报错: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; ...

  5. 运行keras出现 FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated解决办法

    运行keras出现 FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a futur ...

  6. FutureWarning: Passing (type 1) or 1type as a synonym of type is deprecated in a future vers 的解决

    使用tensorflow时遇到以下警告信息,虽然不影响使用,但是看着不爽.具体解决办法如下. 警告信息: FutureWarning: Passing (type, 1) or '1type' as ...

  7. dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a

    dtypes.py:526: FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated; in a ...

  8. 解决pip安装时出现报错TypeError: unsupported operand type(s) for -=: ‘Retry‘ and ‘int‘

    我在Linux下使用pip安装时出现报错: Exception: Traceback (most recent call last):File "/usr/lib/python2.7/dis ...

  9. jupyter notebook import tensorflow as tf 报错解决

    在anaconda5.2.0下 安装tensorflow完毕,在cmd下测试成功,但是在jupyter notebook中测试报错:大意是找不到指定的模块 python版本为3.6.5 解决方法: 1 ...

最新文章

  1. 设置grep高亮显示匹配项
  2. JAVA中方法的类型转换_Java中几种常用数据类型之间转换的方法
  3. python计算最大回撤_Python进阶量化交易场外篇3——最大回撤评价策略风险
  4. Django 模型 —— 字段类型
  5. 【算法分析与设计】实验 分治算法解决中位数问题
  6. 【CTF】某xss练手小游戏
  7. 学JS必读,《JavaScript高级程序设计(第3版)》
  8. 资料:线性代数与空间解析几何知识点全汇总
  9. 蓝桥杯第十届省赛 NE555测方波
  10. 基于微信小程序的校园第二课堂活动报名系统+后台管理系统(Springboot+mysql)-JAVA.VUE【毕业设计、论文、源码、开题报告】
  11. 计算机机械硬盘寿命,机械硬盘的寿命
  12. [POI2009]Lyz
  13. 春运又双叒来啦!阿里出手帮你抢票
  14. 如何制作高大上的PPT--图片
  15. 导致网页图片字体模糊的原因
  16. hibernate进行sum查询
  17. 文本文档改扩展名之后没反应、格式不变之解决办法
  18. 车贷需要注意的问题,车贷风控流程这几点你必须知道
  19. 【内核配置】六、修改内核自带的的LCD驱动源码并编译进内核 | 烧写到Mini2440__TD35 完整攻略...
  20. 涂子沛:数据正在引领高清晰社会,重塑文明

热门文章

  1. java 优秀源码_想要快速进阶Java架构师?这份超强(长)学习计划单 请签收!...
  2. 程序员上帝视角解读“旅行青蛙”,你的呱真的在旅行嘛?
  3. HTML手机上图片显示被压扁,在重新调整Web浏览器HTML |时,文本会被压扁CSS
  4. mysql数据库属性_mysql - 数据库操作和数据属性
  5. python获取div标签的id_Python 获取div标签中的文字实例
  6. Java交流|面试最后一问:你有什么问题想问我吗?
  7. python +appium实现原理_python_appium使用原理
  8. 归纳推理测试没做完_朋友买了1斤紫菜,2年还没吃完,我教他这样做,2个月就吃完了...
  9. linux 7.0查看防火墙状态,centos7查看防火墙状态
  10. 华为机试支持python吗_4.10华为暑期实习生机试题目,python解答