ailed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try look

添加代码

from tensorflow.compat.v1 import ConfigProto
from tensorflow.compat.v1 import InteractiveSession

config = ConfigProto()
config.gpu_options.allow_growth = True
session = InteractiveSession(config=config)

 

你可能感兴趣的:(ailed to get convolution algorithm. This is probably because cuDNN failed to initialize, so try look)