tensorflow 2 cudnn failed to initialize code example
Example: tensorflow.python.framework.errors_impl.unknownerror: 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.
Mostly an OOM error if your cuDNN is functioning properly.
Try shutting down other processes before running.