diff --git a/paddle/fluid/framework/data_feed.cc b/paddle/fluid/framework/data_feed.cc index 556591acdd2092d189edf790ef663e66ada17bac..a1b718fe2c41f7028ab1f7d1a49a7c1264a8cfad 100755 --- a/paddle/fluid/framework/data_feed.cc +++ b/paddle/fluid/framework/data_feed.cc @@ -41,6 +41,7 @@ namespace framework { std::vector DataFeed::filelist_; size_t DataFeed::file_idx_; std::mutex DataFeed::mutex_for_pick_file_; +bool DataFeed::finish_set_filelist_; void DataFeed::AddFeedVar(Variable* var, const std::string& name) { CheckInit(); diff --git a/paddle/fluid/framework/data_feed.h b/paddle/fluid/framework/data_feed.h index 41cc9659273d31e871afa11c82f594032b74cdf5..f37d22b7dc67474f395908bbdc4869c57672a43c 100755 --- a/paddle/fluid/framework/data_feed.h +++ b/paddle/fluid/framework/data_feed.h @@ -205,7 +205,7 @@ class DataFeed { int batch_size_; bool finish_init_; - bool finish_set_filelist_; + static bool finish_set_filelist_; bool finish_binding_memory_; bool finish_start_; };