From 636c6347c61cf338db0b9f40a3e65bd9998bcfed Mon Sep 17 00:00:00 2001 From: xiaoxiaohehe001 <49090790+xiaoxiaohehe001@users.noreply.github.com> Date: Tue, 12 Jul 2022 15:03:02 +0800 Subject: [PATCH] fix_convfusion (#44226) --- paddle/fluid/framework/ir/graph_pattern_detector.cc | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/paddle/fluid/framework/ir/graph_pattern_detector.cc b/paddle/fluid/framework/ir/graph_pattern_detector.cc index e811475dd8..b0792ee081 100644 --- a/paddle/fluid/framework/ir/graph_pattern_detector.cc +++ b/paddle/fluid/framework/ir/graph_pattern_detector.cc @@ -2243,8 +2243,12 @@ PDNode *patterns::PriorBox::operator()() { return boxes_var; } +#if CUDNN_VERSION >= 8000 std::unordered_set conv_act_set( {"identity", "relu", "sigmoid", "tanh"}); +#else +std::unordered_set conv_act_set({"identity", "relu"}); +#endif PDNode *patterns::ConvElementwiseaddAct::operator()(PDNode *conv_in) { conv_in->AsInput(); -- GitLab