FutureWarning: Passing (type, 1) or ‘1type‘ as a synonym of type is deprecated解决办法

FutureWarning: Passing (type, 1) or ‘1type’ as a synonym of type is deprecated解决办法

  • 参考:https://blog.csdn.net/lwh12138/article/details/105028765/

  • 问题描述:
    \anaconda\lib\site-packages\tensorflow\python\framework\dtypes.py:523 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’.

  • 解决方案:
    我们要在电脑里找到位于“\anaconda\lib\site-packages\tensorflow\python\framework\”中的“dtypes.py”文件,用我们常用的python编辑器打开它,并将对应行的“ (type, 1) ”都改成“(type, (1,))”就可以了。

你可能感兴趣的:(DEBUG,debug)