Fail to find the dnn implementation. [Op:CudnnRNN]解決辦法
使用的版本爲tensorflow2.0
報錯信息:
tensorflow.python.framework.errors_impl.UnknownError: [_Derived_] Fail to find the dnn implementation. [[{{node CudnnRNN}}]] [[sequential/lstm/StatefulPartitionedCall]] [Op:__inference_distributed_function_3157] Function call stack: distributed_function -> distributed_function -> distributed_function
緣由:gpu內存的問題
解決辦法:
# 設置gpu內存自增加 gpus = tf.config.experimental.list_physical_devices('GPU') print(gpus) for gpu in gpus: tf.config.experimental.set_memory_growth(gpu, True)
相關文章:node