2#ifndef DMLC_IO_SINGLE_THREADED_INPUT_SPLIT_H_
3#define DMLC_IO_SINGLE_THREADED_INPUT_SPLIT_H_
21 const size_t batch_size)
22 : buffer_size_(InputSplitBase::kBufferSize), batch_size_(batch_size),
23 base_(base), tmp_chunk_(NULL) {}
30 void BeforeFirstProducer() { base_->
BeforeFirst(); }
36 BeforeFirstProducer();
37 if (tmp_chunk_ != NULL) {
42 buffer_size_ = std::max(chunk_size /
sizeof(uint32_t), buffer_size_);
46 if (tmp_chunk_ == NULL) {
47 if (!NextProducer(&tmp_chunk_))
52 if (!NextProducer(&tmp_chunk_))
59 if (tmp_chunk_ == NULL) {
60 if (!NextProducer(&tmp_chunk_))
65 if (!NextProducer(&tmp_chunk_))
defines configuration macros
namespace for dmlc
Definition array_view.h:12
thread backed iterator that can be used to implement general thread-based pipeline such as prefetch a...