MCPcopy Create free account
hub / github.com/PaddlePaddle/Paddle / WaitPreLoadDone

Method WaitPreLoadDone

paddle/fluid/framework/data_set.cc:634–643  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

632
633template <typename T>
634void DatasetImpl<T>::WaitPreLoadDone() {
635 VLOG(3) << "DatasetImpl<T>::WaitPreLoadDone() begin";
636 for (std::thread& t : preload_threads_) {
637 t.join();
638 }
639 input_channel_->Close();
640 int64_t in_chan_size = input_channel_->Size();
641 input_channel_->SetBlockSize(in_chan_size / thread_num_ + 1);
642 VLOG(3) << "DatasetImpl<T>::WaitPreLoadDone() end";
643}
644
645// release memory data
646template <typename T>

Callers

nothing calls this directly

Calls 3

joinMethod · 0.45
CloseMethod · 0.45
SizeMethod · 0.45

Tested by

no test coverage detected