From 3dbd4087fe8b7adfb2078baed401928f0b4a1403 Mon Sep 17 00:00:00 2001 From: zhaoyuchen2018 <45989343+zhaoyuchen2018@users.noreply.github.com> Date: Tue, 7 Jan 2020 20:19:34 +0800 Subject: [PATCH] Fix windows build not kernel issue, test=develop (#22105) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit windows conv_fusion failed as no kernel, explicit declare lambda Signed-off-by: zhaoyuchen --- paddle/fluid/operators/fused/conv_fusion_op.cu | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/paddle/fluid/operators/fused/conv_fusion_op.cu b/paddle/fluid/operators/fused/conv_fusion_op.cu index 905e19f0d8..858cde0086 100644 --- a/paddle/fluid/operators/fused/conv_fusion_op.cu +++ b/paddle/fluid/operators/fused/conv_fusion_op.cu @@ -12,8 +12,8 @@ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. */ +#include #include "paddle/fluid/framework/op_registry.h" -#include "paddle/fluid/operators/conv_cudnn_helper.h" #include "paddle/fluid/operators/conv_cudnn_op_cache.h" #include "paddle/fluid/operators/conv_op.h" #include "paddle/fluid/operators/math/padding.h" @@ -210,7 +210,8 @@ class CUDNNConvFusionOpKernel : public framework::OpKernel { workspace_size_limit, &algo)); VLOG(3) << "cuDNN forward algo " << algo; } else { - auto search_func = [&]() { + std::function search_func = + [&]() -> cudnnConvolutionFwdAlgo_t { int returned_algo_count; std::array fwd_perf_stat; -- GitLab