解决报错
"Failed to get convolution algorithm. This is probably because cuDNN failed to initialize, so trylooking to see if a warning log message was printed above. [Op:Conv2D]
"
代码块前面加上三行:
physical_devices = tf.config.experimental.list_physical_devices(‘GPU’)
assert len(physical_devices) > 0, “Not enough GPU hardware devices available”
tf.config.experimental.set_memory_growth(physical_devices[0], True)
最后restart kernel