Trung Minh
New member
How do I know if my GPU is Tensorflow?
Answer
You can use the below-mentioned code to tell if tensorflow is using gpu acceleration from inside python shell there is an easier way to achieve this.
Answer
You can use the below-mentioned code to tell if tensorflow is using gpu acceleration from inside python shell there is an easier way to achieve this.
- import tensorflow as tf.
- if tf.test.gpu_device_name():
- print(‘Default GPU Device:
- {}’.format(tf.test.gpu_device_name()))
- else:
- print(“Please install GPU version of TF”)