【TensorFlow】FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecate解决方法
升级TensorFlow之后,运行之前的程序就出现了很多warning。
那么如何解决呢?
一、首先我们随便运行个程序,找到这个warning,然后Ctrl+左键进入这个文件(dtypes.py)里
" class="reference-link">
二、在打开的文件中,找到下面这些代码
" class="reference-link">
把上面的代码改成下面这种的:( 把1改成(1,) )
" class="reference-link">
好像一共12处,改完保存就行了。
参考博客:
- https://blog.csdn.net/bigdream123/article/details/99467316
还没有评论,来说两句吧...