module 'tensorflow_core._api.v2.config' has no attribute 'experimental_list_
2021-03-12 14:27
标签:color view 修改 ror lan toc 路径 size http 建立CNN层时出错: module ‘tensorflow_core._api.v2.config’ has no attribute ‘experimental_list_devices’ 找到如下图路径: 为 module 'tensorflow_core._api.v2.config' has no attribute 'experimental_list_devices' 标签:color view 修改 ror lan toc 路径 size http 原文地址:https://www.cnblogs.com/Howbin/p/12588278.htmlmodule ‘tensorflow_core._api.v2.config‘ has no attribute ‘experimental_list_devices‘
修改506行:_LOCAL_DEVICES = tf.config.experimental_list_devices()
devices = tf.config.list_logical_devices()
_LOCAL_DEVICES = [x.name for x in devices]
上一篇:linux dd win
下一篇:js之window
文章标题:module 'tensorflow_core._api.v2.config' has no attribute 'experimental_list_
文章链接:http://soscw.com/index.php/essay/63707.html