From e868950e5f938fe737b26f5040ffc7c09d29f6e6 Mon Sep 17 00:00:00 2001 From: Yu Yang Date: Thu, 29 Mar 2018 11:33:21 +0800 Subject: [PATCH] Add comments --- paddle/fluid/framework/details/ssa_graph.h | 1 + paddle/fluid/framework/details/threaded_ssa_graph_executor.cc | 1 - 2 files changed, 1 insertion(+), 1 deletion(-) diff --git a/paddle/fluid/framework/details/ssa_graph.h b/paddle/fluid/framework/details/ssa_graph.h index c1e041b8c0b..ac3e2d86993 100644 --- a/paddle/fluid/framework/details/ssa_graph.h +++ b/paddle/fluid/framework/details/ssa_graph.h @@ -25,6 +25,7 @@ namespace details { struct SSAGraph { std::vector>> vars_; + // aux variables to represent dependency. Useful to resolve data hazard. std::unordered_set> dep_vars_; std::vector> ops_; }; diff --git a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc index 2603aed62ac..3f8655147b6 100644 --- a/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc +++ b/paddle/fluid/framework/details/threaded_ssa_graph_executor.cc @@ -15,7 +15,6 @@ #include "paddle/fluid/framework/details/threaded_ssa_graph_executor.h" #include "paddle/fluid/framework/details/fetch_op_handle.h" -#include "paddle/fluid/framework/scope.h" namespace paddle { namespace framework { -- GitLab