当前位置:   article > 正文

FutureWarning: Passing (type 1) or 1type as a synonym of type is deprecated in a future vers 的解决_futurewarning: passing (type, 1) or '1type' as a s

futurewarning: passing (type, 1) or '1type' as a synonym of type is deprecat

使用tensorflow时遇到以下警告信息,虽然不影响使用,但是看着不爽。具体解决办法如下。

警告信息:

  1. 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'.
  2. _np_qint8 = np.dtype([("qint8", np.int8, 1)])

报错原因:numpy的版本过高,降低numpy的版本即可,如numpy-1.16.0版本

解决方法:

pip install numpy==1.16.0

 

声明:本文内容由网友自发贡献,不代表【wpsshop博客】立场,版权归原作者所有,本站不承担相应法律责任。如您发现有侵权的内容,请联系我们。转载请注明出处:https://www.wpsshop.cn/w/Gausst松鼠会/article/detail/311569
推荐阅读
相关标签
  

闽ICP备14008679号