An error of cudnn

When I used pytorch to train the model, sometimes I got an error “RuntimeError: cuDNN error: CUDNN_STATUS_EXECUTION_FAILED”. I don’t know what causes this error. When I downgrade the pytorch version, this error can diminish. I want to know the reason.

There are many reasons why the error is thrown, can’t help without your code and complete error information