We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent db82480 commit 2a5e14cCopy full SHA for 2a5e14c
dali/python/nvidia/dali/plugin/mxnet.py
@@ -96,7 +96,7 @@ def __init__(self,
96
for p in self._pipes:
97
p.build()
98
# Use double-buffering of data batches
99
- self._data_batches = [[None, None] for i in range(self._num_gpus)]
+ self._data_batches = [[None] for i in range(self._num_gpus)]
100
self._counter = 0
101
self._current_data_batch = 0
102
self.output_map = output_map
@@ -168,7 +168,7 @@ def __next__(self):
168
169
copy_db_index = self._current_data_batch
170
# Change index for double buffering
171
- self._current_data_batch = (self._current_data_batch + 1) % 2
+ self._current_data_batch = (self._current_data_batch + 1) % 1
172
self._counter += self._num_gpus * self.batch_size
173
174
# padding the last batch
0 commit comments