File tree 2 files changed +0
-17
lines changed
2 files changed +0
-17
lines changed Original file line number Diff line number Diff line change @@ -354,10 +354,6 @@ def _shutdown_thread(self):
354
354
355
355
self ._thread = None
356
356
357
- # python2 compatibility
358
- def next (self ):
359
- return self .__next__ ()
360
-
361
357
def _try_shutdown_all (self ):
362
358
if not self ._shutdown :
363
359
try :
@@ -854,10 +850,6 @@ def __next__(self):
854
850
if in_profiler_mode ():
855
851
trace_event .end ()
856
852
857
- # python2 compatibility
858
- def next (self ):
859
- return self .__next__ ()
860
-
861
853
def _on_output_batch (self ):
862
854
for _ in range (len (self ._places )):
863
855
self ._batches_outstanding -= 1
Original file line number Diff line number Diff line change @@ -152,15 +152,6 @@ def __init__(self):
152
152
def __call__ (self ):
153
153
return self
154
154
155
- def next (self ):
156
- '''
157
- Get the next item in the DataLoader object. This method
158
- should not be called by users directly. It is used for
159
- implementing iterator protocol of Python 2.x inside
160
- PaddlePaddle framework.
161
- '''
162
- return self .__next__ ()
163
-
164
155
def __iter__ (self ):
165
156
raise NotImplementedError ()
166
157
You can’t perform that action at this time.
0 commit comments