tutorials
tutorials copied to clipboard
tensorflow 2.1.0 error
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.
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)
收到,谢谢
这是来自QQ邮箱的假期自动回复邮件。您好,邮件以收到,我会尽快给您回复。