fix data feed ptr error (#18419)

fix data feed ptr runtime error, pipeline trainer will core in some cases, so set it nullptr as default value.
xsrobin-update1.5
jiaqi 6 years ago committed by GitHub
parent ef81ff742a
commit 93a2b317f7
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -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_;

Loading…
Cancel
Save