Skip to content

Commit

Permalink
fix LMDBSerializer
Browse files Browse the repository at this point in the history
  • Loading branch information
ppwwyyxx committed Jan 9, 2020
1 parent bf8acbf commit ffd9eae
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions tensorpack/dataflow/format.py
Original file line number Diff line number Diff line change
Expand Up @@ -145,8 +145,7 @@ def __iter__(self):
with self._guard:
if not self._shuffle:
c = self._txn.cursor()
while next(c):
k, v = c.item()
for k, v in c:
if k != b'__keys__':
yield [k, v]
else:
Expand Down

0 comments on commit ffd9eae

Please sign in to comment.