How do I know if my GPU is Tensorflow?

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.
  1. import tensorflow as tf.
  2. if tf.test.gpu_device_name():
  3. print(‘Default GPU Device:
  4. {}’.format(tf.test.gpu_device_name()))
  5. else:
  6. print(“Please install GPU version of TF”)
11 окт. 2019 г.
 

Tìm kiếm

Back
Top