File tree Expand file tree Collapse file tree 1 file changed +2
-2
lines changed
dali/python/nvidia/dali/plugin Expand file tree Collapse file tree 1 file changed +2
-2
lines changed Original file line number Diff line number Diff line change @@ -96,7 +96,7 @@ def __init__(self,
96
96
for p in self ._pipes :
97
97
p .build ()
98
98
# Use double-buffering of data batches
99
- self ._data_batches = [[None , None ] for i in range (self ._num_gpus )]
99
+ self ._data_batches = [[None ] for i in range (self ._num_gpus )]
100
100
self ._counter = 0
101
101
self ._current_data_batch = 0
102
102
self .output_map = output_map
@@ -168,7 +168,7 @@ def __next__(self):
168
168
169
169
copy_db_index = self ._current_data_batch
170
170
# Change index for double buffering
171
- self ._current_data_batch = (self ._current_data_batch + 1 ) % 2
171
+ self ._current_data_batch = (self ._current_data_batch + 1 ) % 1
172
172
self ._counter += self ._num_gpus * self .batch_size
173
173
174
174
# padding the last batch
You can’t perform that action at this time.
0 commit comments