Skip to content

Commit 0b2f1b3

Browse files
committed
clear stream during Scanner::Reset()
1 parent c346a34 commit 0b2f1b3

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)