@@ -20,10 +20,10 @@ limitations under the License. */
20
20
#include " paddle/fluid/platform/cudnn_helper.h"
21
21
#include " paddle/fluid/platform/float16.h"
22
22
23
- DEFINE_bool (cudnn_deterministic, true ,
23
+ DEFINE_bool (cudnn_deterministic, false ,
24
24
" Whether allow using an autotuning algorithm for convolution "
25
25
" operator. The autotuning algorithm may be non-deterministic. If "
26
- " false , the algorithm is deterministic." );
26
+ " true , the algorithm is deterministic." );
27
27
28
28
namespace paddle {
29
29
namespace operators {
@@ -272,7 +272,7 @@ class CUDNNConvGradOpKernel : public framework::OpKernel<T> {
272
272
auto & dev_ctx = ctx.template device_context <platform::CUDADeviceContext>();
273
273
auto handle = dev_ctx.cudnn_handle ();
274
274
if (input_grad) {
275
- if (FLAGS_cudnn_deterministic) {
275
+ if (! FLAGS_cudnn_deterministic) {
276
276
CUDNN_ENFORCE (
277
277
platform::dynload::cudnnGetConvolutionBackwardDataAlgorithm (
278
278
handle, cudnn_filter_desc,
@@ -297,7 +297,7 @@ class CUDNNConvGradOpKernel : public framework::OpKernel<T> {
297
297
}
298
298
299
299
if (filter_grad) {
300
- if (FLAGS_cudnn_deterministic) {
300
+ if (! FLAGS_cudnn_deterministic) {
301
301
CUDNN_ENFORCE (
302
302
platform::dynload::cudnnGetConvolutionBackwardFilterAlgorithm (
303
303
handle, cudnn_input_desc, cudnn_output_grad_desc,
0 commit comments