tutorials icon indicating copy to clipboard operation
tutorials copied to clipboard

tensorflow 2.1.0 error

Open AlexYibeiOu opened this issue 5 years ago • 3 comments

macOS Catalina 10.15.4 PyCharm 2019.3.2 (Community Edition)

I used the most updated tensorflow 2.1.0 to run comes with below error:

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

Then I downgrade to tensorflow 2.0.0 everything is good.

AlexYibeiOu avatar May 05 '20 03:05 AlexYibeiOu

import tensorflow as tf

List available physical devices

physical_devices = tf.config.list_physical_devices()

Print the list of devices

for device in physical_devices: print(device)

salmanmanzar avatar Dec 18 '23 18:12 salmanmanzar

收到,谢谢 

191578010 avatar Dec 18 '23 18:12 191578010

这是来自QQ邮箱的假期自动回复邮件。您好,邮件以收到,我会尽快给您回复。

carlchencup avatar Dec 18 '23 18:12 carlchencup