未验证 提交 93a2b317 编写于 作者: J jiaqi 提交者: GitHub

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.
上级 ef81ff74
......@@ -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_;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册