原文: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