Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

AttributeError: module 'tensorflow' has no attribute 'config' #117

Open
WestbrookZero opened this issue Dec 9, 2020 · 1 comment
Open

Comments

@WestbrookZero
Copy link

My environment is tensorflow-gpu1.13.1 , keras 2.2.4.
Using TensorFlow backend.
Traceback (most recent call last):
File "D:/Projects/Segment/Portrait/keras-maskrcnn/examples/ResNet50MaskRCNN.py", line 38, in
setup_gpu(0)
File "C:\Users\wuq\AppData\Roaming\Python\Python35\site-packages\keras_retinanet\utils\gpu.py", line 25, in setup_gpu
gpus = tf.config.list_physical_devices('GPU')
AttributeError: module 'tensorflow' has no attribute 'config'

@Kirstihly
Copy link

For tensorflow1, to find out which device is used, you can enable log device placement and check outputs.

sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants