我不断收到此错误:
Traceback (most recent call last)
File "tensorflow.py", line 1, in <module>
import tensorflow as tf
File "C:\Users\Anush\Desktop\tensorflow.py", line 2, in <module>
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
AttributeError: partially initialized module 'tensorflow' has no attribute 'config' (most likely due to a circular import)
这是我的代码:
import tensorflow as tf
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
这是我的 Tensorflow 版本:tensorboard-2.3.0tensorflow-2.3.1tensorflow-estimator-2.3.0tensorflow-gpu-2.3.1
我使用的是Python 3.8.0
吃鸡游戏
POPMUISE
FFIVE
相关分类