【Python】module ‘tensorflow_core._api.v2.config’ has no attribute ‘experimental_list_devices’
生活随笔
收集整理的這篇文章主要介紹了
【Python】module ‘tensorflow_core._api.v2.config’ has no attribute ‘experimental_list_devices’
小編覺得挺不錯的,現在分享給大家,幫大家做個參考.
報錯:
module ‘tensorflow_core._api.v2.config’ has no attribute ‘experimental_list_devices’
找到圖示文件:
把原506行注釋,補加:
devices = tf.config.list_logical_devices() _LOCAL_DEVICES = [x.name for x in devices]
運行神經網絡程序,解決問題。
總結
以上是生活随笔為你收集整理的【Python】module ‘tensorflow_core._api.v2.config’ has no attribute ‘experimental_list_devices’的全部內容,希望文章能夠幫你解決所遇到的問題。
- 上一篇: 【计算机科学基础】二进制加减法不用原码的
- 下一篇: 【Web】JavaWeb开发技术笔记整理