diff --git a/paddle/fluid/framework/details/async_ssa_graph_executor.cc b/paddle/fluid/framework/details/async_ssa_graph_executor.cc index 0780fb040a6fa0160d6afc3cb6a014c8a6746d71..a584b3a708be30278a0c9ad047c727364424f9ef 100644 --- a/paddle/fluid/framework/details/async_ssa_graph_executor.cc +++ b/paddle/fluid/framework/details/async_ssa_graph_executor.cc @@ -29,7 +29,7 @@ AsyncSSAGraphExecutor::AsyncSSAGraphExecutor( graphs_(std::move(graphs)) { VLOG(3) << "build AsyncSSAGraphExecutor"; PADDLE_ENFORCE_EQ(places_.size(), local_scopes_.size()); - PADDLE_ENFORCE_EQ(graphs_.size, local_scopes_.size()); + PADDLE_ENFORCE_EQ(graphs_.size(), local_scopes_.size()); // set the correct size of thread pool to each device. strategy_.num_threads_ = strategy_.num_threads_ < places_.size()