Error : 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.
Method1:
可能是cudnn,cuda,tensorflow等版本不兼容的问题。
Method2:
在 import tensorflow as tf 语句的后面插入如下代码:
config = ConfigProto()
config.gpu_options.allow_growth = True
session = InteractiveSession(config=config)
具体原因我也没有搞懂,还在探讨中.....