diff --git a/paddle/fluid/framework/device_worker.h b/paddle/fluid/framework/device_worker.h index 035392ef318cb7861a7db185df990ec9bf7bbfb9..8c91a5b9bf49b5ee069e7543725134a6fb74540b 100644 --- a/paddle/fluid/framework/device_worker.h +++ b/paddle/fluid/framework/device_worker.h @@ -119,9 +119,9 @@ class DeviceWorker { } protected: - Scope* root_scope_; + Scope* root_scope_ = nullptr; paddle::platform::Place place_; - DataFeed* device_reader_; + DataFeed* device_reader_ = nullptr; int64_t batch_num_; FetchConfig fetch_config_; bool use_cvm_;