From 5a611afdac86dc216f2c1ae8074732f4c84c4636 Mon Sep 17 00:00:00 2001 From: Pei Yang Date: Tue, 7 Jan 2020 20:44:38 +0800 Subject: [PATCH] fix trt calib not working bug, test=develop (#21934) (#22110) --- paddle/fluid/framework/ir/graph_pattern_detector.h | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/paddle/fluid/framework/ir/graph_pattern_detector.h b/paddle/fluid/framework/ir/graph_pattern_detector.h index 0d7d56cabf3..e164ce383a0 100644 --- a/paddle/fluid/framework/ir/graph_pattern_detector.h +++ b/paddle/fluid/framework/ir/graph_pattern_detector.h @@ -18,8 +18,10 @@ #include #endif +#include #include #include +#include #include #include #include @@ -294,7 +296,7 @@ class GraphPatternDetector { using hit_rcd_t = std::pair; PDPattern pattern_; - std::unordered_map> pdnodes2nodes_; + std::map> pdnodes2nodes_; }; // some helper methods. -- GitLab