diff --git a/python/mxnet/io/io.py b/python/mxnet/io/io.py index 5a022ea1c81c..1b8f265b7045 100644 --- a/python/mxnet/io/io.py +++ b/python/mxnet/io/io.py @@ -226,7 +226,7 @@ def next(self): raise StopIteration def __next__(self): - return self.next() + return self.next() # pylint: disable=E1102 def iter_next(self): """Move to the next batch. @@ -830,7 +830,7 @@ def __init__(self, handle, data_name='data', label_name='softmax_label', **_): # load the first batch to get shape information self.first_batch = None - self.first_batch = self.next() + self.first_batch = self.next() # pylint: disable=E1102 data = self.first_batch.data[0] label = self.first_batch.label[0]