代码抛出异常:
Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try looking to see if a warning log message was printed above.
python解释器显示的错误是:
_7_shuffle_batch_2/random_shuffle_queue: Skipping cancelled enqueue attempt with queue not closed.
出现错误的原因:
cuda被其它程序占用,意思就是我们在运行此次代码之前已经有一个程序在运行了(占用着gpu)
解决方案:
终止之前正在使用gpu的程序,并重新运行我们当前需要执行的代码