diff --git a/paddle/fluid/operators/conv_cudnn_helper.h b/paddle/fluid/operators/conv_cudnn_helper.h index a783a619473ef2e73246daac79cdad2c2e6cf533..4c9727391759b0c1865e9fc51288458e7786c878 100644 --- a/paddle/fluid/operators/conv_cudnn_helper.h +++ b/paddle/fluid/operators/conv_cudnn_helper.h @@ -164,7 +164,7 @@ void ChooseAlgo(const std::vector& perf_results, VLOG(3) << " choose algo: " << result.algo << ", TC: " << math_type_str << ", time: " << result.time << " ms" << ", wksp = " << result.memory << ", status = " << result.status; - return; + break; } } } @@ -197,7 +197,6 @@ static void SetConvMathType(const framework::ExecutionContext& ctx, VLOG(5) << "NOT use cudnn_tensor_op_math"; } #endif - return; } struct ConvArgs {