File tree Expand file tree Collapse file tree 2 files changed +2
-2
lines changed
paddle/fluid/operators/reader Expand file tree Collapse file tree 2 files changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -20,7 +20,7 @@ class ReaderBase {
20
20
PADDLE_ENFORCE(!shapes_ .empty());
21
21
}
22
22
// Read the next batch of data. (A 'batch' can be only one instance)
23
- // If the next batch doesn't exist, the 'out' will be an empty std::vector.
23
+ // If the next batch doesn't exist, the '* out' will be an empty std::vector.
24
24
virtual void ReadNext(std::vector<LoDTensor >* out) = 0;
25
25
26
26
// Reinitialize the reader and read the file from the begin.
Original file line number Diff line number Diff line change @@ -70,7 +70,7 @@ void BatchReader::ReadNext(std::vector<framework::LoDTensor>* out) {
70
70
for (int i = 0 ; i < batch_size_; ++i) {
71
71
buffer_.push_back (std::vector<framework::LoDTensor>());
72
72
reader_->ReadNext (&buffer_.back ());
73
- if (buffer .back ().empty ()) {
73
+ if (buffer_ .back ().empty ()) {
74
74
buffer_.pop_back ();
75
75
break ;
76
76
}
You can’t perform that action at this time.
0 commit comments