Home / TensorFlow / TensorFlow / Installation
Test
import tensorflow as tf
gpus = len(tf.config.list_physical_devices ('GPU'))
print(f"TensorFlow v{tf.__version__} installed.")
print(f"{gpus} GPU(s) available.")
TensorFlow v2.16.2 installed. 1 GPU(s) available.