SyntaxFix
Write A Post
Hire A Developer
Questions
If you are using TensorFlow 2.0, you can use this for loop to show the devices:
with tf.compat.v1.Session() as sess: devices = sess.list_devices() devices