1.问题
运行基于tensorflow1版本写的基于强化学习的纸牌游戏,遇到以下错误
2.解决
在电脑里找到位于“\anaconda\lib\site-packages\tensorflow\python\framework\”中的“dtypes.py”文件,并将对应行的“ (type, 1) ”都改成“(type, (1,))”。
注意:基于tensorflow所在的虚拟环境找到对应dtypes.py。
参考文献
1.FutureWarning: Passing (type, 1) or '1type' as a synonym of type is deprecated解决办法-CSDN博客