首页 > Windows开发 > 详细

module 'tensorflow_core._api.v2.config' has no attribute 'experimental_list_devices'

时间:2020-03-28 18:14:50      阅读:1003      评论:0      收藏:0      [点我收藏+]

module ‘tensorflow_core._api.v2.config‘ has no attribute ‘experimental_list_devices‘

技术分享图片

报错如下

建立CNN层时出错:

module ‘tensorflow_core._api.v2.config’ has no attribute ‘experimental_list_devices’

技术分享图片
错误

环境

  • keras cup版本
  • Anaconda

解决方法

找到如下图路径:
技术分享图片
修改506行:

_LOCAL_DEVICES = tf.config.experimental_list_devices()

devices = tf.config.list_logical_devices()

_LOCAL_DEVICES = [x.name for x in devices]

参考

module 'tensorflow_core._api.v2.config' has no attribute 'experimental_list_devices'

原文:https://www.cnblogs.com/Howbin/p/12588278.html

(0)
(0)
   
举报
评论 一句话评论(0
关于我们 - 联系我们 - 留言反馈 - 联系我们:wmxa8@hotmail.com
© 2014 bubuko.com 版权所有
打开技术之扣,分享程序人生!