“Test GPU TENSORFLOW” Kod odpowiedzi

Test GPU TENSORFLOW

# As it's written in Tensorflow documentatoin: 

import tensorflow as tf
print("Num GPUs Available: ", len(tf.config.experimental.list_physical_devices('GPU')))
Ugly Unicorn

Tensorflow Sprawdź GPU

tf.config.list_physical_devices('GPU')
Splendid Scarab

Sprawdź GPU w TensorFlow

# For tensorflow 2:
print("Num GPUs Available: ", len(tf.config.list_physical_devices('GPU')))

# For tensorflow 1:
sess = tf.Session(config=tf.ConfigProto(log_device_placement=True))
Lazy Lizard

Test GPU TENSORFLOW

tf.test.is_gpu_available(
  cuda_only=False, min_cuda_compute_capability=None
)
Witty Whale

Odpowiedzi podobne do “Test GPU TENSORFLOW”

Pytania podobne do “Test GPU TENSORFLOW”

Więcej pokrewnych odpowiedzi na “Test GPU TENSORFLOW” w Python

Przeglądaj popularne odpowiedzi na kod według języka

Przeglądaj inne języki kodu