Skip to content

Commit 4286ea6

Browse files
committed
Merge branch 'fix_bug_in_recordio' into dev_MultiEpochReader
2 parents a4f397f + 0b2f1b3 commit 4286ea6

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

paddle/fluid/recordio/scanner.cc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ Scanner::Scanner(const std::string &filename) {
2828
}
2929

3030
void Scanner::Reset() {
31+
stream_->clear();
3132
stream_->seekg(0, std::ios::beg);
3233
ParseNextChunk();
3334
}

0 commit comments

Comments
 (0)