“Verifique a GPU no Tensorflow” Respostas de código

Verifique se a GPU do TensorFlow está instalada

import tensorflow as tf
print(tf.test.gpu_device_name())
CBT fan club

Teste de GPU do 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 Check GPU

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

Verifique a GPU no 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

Teste de GPU do Tensorflow

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

Tensorflow não consigo ver a GPU

$ pip uninstall tensorflow
$ pip install tensorflow-gpu
Relieved Reindeer

Respostas semelhantes a “Verifique a GPU no Tensorflow”

Perguntas semelhantes a “Verifique a GPU no Tensorflow”

Mais respostas relacionadas para “Verifique a GPU no Tensorflow” em Python

Procure respostas de código populares por idioma

Procurar outros idiomas de código