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

此博客鏈接:https: www.cnblogs.com ping yingshi p .html 當你出現這個問題時,說明在tf 下使用了tf 的API。 .參看版本號是否使用錯誤。 在pycharm下,找到工程,然后輸出下面命令參看版本 如果顯示下圖所示,說明你用的是tf . .把代碼進入tf環境中下面的代碼 替換成下面代碼。 運行程序。程序正確。 ...

2020-05-19 23:56 4 54562 推薦指數:

查看詳情

 
粵ICP備18138465號   © 2018-2025 CODEPRJ.COM