Skip to content

Commit 6e5736e

Browse files
committed
fix a compile error
1 parent 4e51788 commit 6e5736e

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

doc/design/cpp_data_feeding.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ class ReaderBase {
2020
PADDLE_ENFORCE(!shapes_.empty());
2121
}
2222
// 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.
2424
virtual void ReadNext(std::vector<LoDTensor>* out) = 0;
2525

2626
// Reinitialize the reader and read the file from the begin.

paddle/fluid/operators/reader/create_batch_reader_op.cc

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@ void BatchReader::ReadNext(std::vector<framework::LoDTensor>* out) {
7070
for (int i = 0; i < batch_size_; ++i) {
7171
buffer_.push_back(std::vector<framework::LoDTensor>());
7272
reader_->ReadNext(&buffer_.back());
73-
if (buffer.back().empty()) {
73+
if (buffer_.back().empty()) {
7474
buffer_.pop_back();
7575
break;
7676
}

0 commit comments

Comments
 (0)