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