diff --git a/src/gluonnlp/data/stream.py b/src/gluonnlp/data/stream.py index 25902d51ce..40c21c8747 100644 --- a/src/gluonnlp/data/stream.py +++ b/src/gluonnlp/data/stream.py @@ -202,7 +202,6 @@ def _get_sampler(self, sampler): 'a `gluon.data.Sampler`, but got %s'%(sampler)) def __iter__(self): - file_sampler = self._get_sampler(self._file_sampler) # generate file samples for file_idx in iter(self._file_sampler): filename = self._files[file_idx]