From 4f66e922e8073e9416710bcbfdde72a9c7c709eb Mon Sep 17 00:00:00 2001 From: xujiaqi01 <173596896@qq.com> Date: Mon, 14 Oct 2019 13:07:33 +0800 Subject: [PATCH] fix parse content in CreatePreLoadReaders (#20258) (#20570) Fix parse content in CreatePreLoadReaders. Before this fix, if you use dataset.set_parse_content and dataset.preload, parse content didn't work. --- paddle/fluid/framework/data_set.cc | 1 + 1 file changed, 1 insertion(+) diff --git a/paddle/fluid/framework/data_set.cc b/paddle/fluid/framework/data_set.cc index 541b3fede90..471db585cef 100644 --- a/paddle/fluid/framework/data_set.cc +++ b/paddle/fluid/framework/data_set.cc @@ -561,6 +561,7 @@ void DatasetImpl::CreatePreLoadReaders() { preload_readers_[i]->SetFileListIndex(&file_idx_); preload_readers_[i]->SetFileList(filelist_); preload_readers_[i]->SetParseInsId(parse_ins_id_); + preload_readers_[i]->SetParseContent(parse_content_); preload_readers_[i]->SetInputChannel(input_channel_.get()); preload_readers_[i]->SetOutputChannel(nullptr); preload_readers_[i]->SetConsumeChannel(nullptr); -- GitLab