Tensorflow cuDNN failed to initialize error 해결

nocarrotrabbit·2022년 5월 3일
0

아나콘다 프롬프트에서
conda install cuDNN
해주기

import tensorflow as tf
from tensorflow.keras import datasets, layers, models

gpus = tf.config.experimental.list_physical_devices('GPU')
if gpus:
    try:
        # Currently, memory growth needs to be the same across GPUs
        for gpu in gpus:
            tf.config.experimental.set_memory_growth(gpu, True)
    except RuntimeError as e:
        # Memory growth must be set before GPUs have been initialized
        print(e)

0개의 댓글