tensorflow2.x 報錯 Could not load dynamic library cudnn64_7.dll

前往官網下載所需得 cuddn 補丁:戳我

之後將

tensorflow2.x 報錯 Could not load dynamic library 'cudnn64_7.dll'

文件全部複製到相應得
tensorflow2.x 報錯 Could not load dynamic library 'cudnn64_7.dll'

中,即可。

測試獲取 gpu:

import tensorflow as tf
tf.debugging.set_log_device_placement(True)
gpus = tf.config.experimental.list_physical_devices('GPU')
for gpu in gpus:
    tf.config.experimental.set_memory_growth(gpu, True)
print(gpus)
logical_gpus = tf.config.experimental.list_logical_devices('GPU')
print(logical_gpus)

原文鏈接:https://learnku.com/articles/41385

發表評論
所有評論
還沒有人評論,想成為第一個評論的人麼? 請在上方評論欄輸入並且點擊發布.
相關文章