CUDNN STATUS BAD PARAM Error

I try to start a train using YoLoV4. I compiled opencv and yolo with GPU and CUDNN. I get an error like cuDNN Error: CUDNN_STATUS_BAD_PARAM when I try to start the train. And the train does not start. What can be reason of this error?
Followings are my environment’s versions.

GPU: Quadro M4000
CUDA: 10.2.89
CUDNN: 7.6.5
OpenCV: 4.5.1

Regards!