From 8b853b303083f4170e51791fa147a6594d50bfdd Mon Sep 17 00:00:00 2001 From: wangchaochaohu Date: Fri, 20 Nov 2020 16:13:11 +0800 Subject: [PATCH] fix the number of perf algo for conv cudnn in exhaustive mode (#28694) --- paddle/fluid/operators/conv_cudnn_helper.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/conv_cudnn_helper.h b/paddle/fluid/operators/conv_cudnn_helper.h index 2ba58a6dae5..fe0150cca52 100644 --- a/paddle/fluid/operators/conv_cudnn_helper.h +++ b/paddle/fluid/operators/conv_cudnn_helper.h @@ -429,7 +429,7 @@ struct SearchAlgorithm { x_dims, w_dims, args.s, args.p, args.d, 0, static_cast(args.cudnn_dtype), [&]() { int returned_algo_count; - std::array perf_stat; + std::array perf_stat; auto cudnn_find_func = [&](void* cudnn_workspace_ptr) { PADDLE_ENFORCE_CUDA_SUCCESS( @@ -561,7 +561,7 @@ struct SearchAlgorithm { x_dims, w_dims, args.s, args.p, args.d, 0, static_cast(args.cudnn_dtype), [&]() { int returned_algo_count; - std::array perf_stat; + std::array perf_stat; auto cudnn_find_func = [&](void* cudnn_workspace_ptr) { PADDLE_ENFORCE_CUDA_SUCCESS( platform::dynload:: -- GitLab