原文:AttributeError: module 'tensorflow_core._api.v2.config' has no attribute 'list_physical_devices'

AttributeError: module tensorflow core. api.v .config has no attribute list physical devices 應該是接口更新了,改成以下接口就不會報錯了。 查看所有GPU 查看所有設備 ...

2020-11-21 05:25 0 1231 推薦指數:

查看詳情

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