原文:問題解決——AttributeError: module 'tensorflow' has no attribute 'placeholder'

問題分析:在tf 下使用了tf 的API 解決方法: 替換掉原本的 ...

2019-11-26 15:49 0 9470 推薦指數:

查看詳情

AttributeError: module 'tensorflow' has no attribute 'placeholder'問題

此博客鏈接:https://www.cnblogs.com/ping2yingshi/p/12920537.html 當你出現這個問題時,說明在tf2下使用了tf1的API。 1.參看版本號是否使用錯誤。 在pycharm下,找到工程,然后輸出下面命令參看版本 ...

Wed May 20 07:56:00 CST 2020 4 54562
 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM