Cuda Error in nvinfer1::cudnn::findFastestTactic:30(unknown error)

I am using TensorRT5.1.2 for inference using a uff model converted from tensorflow. And there is a plugin layer
in my network. After parsing UFF file succeed, I use the builder to creat engine, I got the following error:

[E] [TRT] c:\p4sw\sw\gpgpu\MachineLearning\DIT\release\5.1\builder\cudnnBuilderUtils.cpp (247) - Cuda Error in nvinfer1::cudnn::findFastestTactic: 30 (unknown error)
[E] [TRT] c:\p4sw\sw\gpgpu\MachineLearning\DIT\release\5.1\builder\cudnnBuilderUtils.cpp (247) - Cuda Error in nvinfer1::cudnn::findFastestTactic: 30 (unknown error)

but sometimes, I can build the engine successfully and run the inference. Most of the time I got the error. I don’t know why.

Hi @Maximum,
UFF parser has been deprecated from TRT7 onwards.
Hence we recommend you to use the latest TRT release and ONNX parser.

Thanks!