4cf9cfaa3ab7c77bf45f3e36079af7bc348515e8,python/src/nnabla/utils/data_iterator.py,DataIterator,next,#DataIterator#,174
Before Change
"""
data = [[] for x in self._variables]
batch_size = self._batch_size
for b in range(batch_size):
d = self._get_next_data()
for i, v in enumerate(self._variables):
data[i].append(d[i])
return tuple([numpy.array(x) for x in data])
def _callback_epoch_end(self):
for callback in self._epoch_end_callbacks:
After Change
"""
self._next_thread.join()
data = self._current_data
self._next_thread = threading.Thread(target=self._next)
self._next_thread.start()
return data
def _callback_epoch_end(self):
for callback in self._epoch_end_callbacks:
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 5
Instances
Project Name: sony/nnabla
Commit Name: 4cf9cfaa3ab7c77bf45f3e36079af7bc348515e8
Time: 2017-10-13
Author: yukio.obuchi@jp.sony.com
File Name: python/src/nnabla/utils/data_iterator.py
Class Name: DataIterator
Method Name: next
Project Name: automl/auto-sklearn
Commit Name: 8442321b9b7a7cef7e3806b525965c36cea1549e
Time: 2020-09-25
Author: feurerm@informatik.uni-freiburg.de
File Name: examples/60_search/example_parallel_manual_spawning.py
Class Name:
Method Name:
Project Name: mariogeiger/se3cnn
Commit Name: 15e0732d7c66db1891cd87a7e69c538c333201a3
Time: 2017-08-08
Author: geiger.mario@gmail.com
File Name: se3_cnn/convolution.py
Class Name: SE3KernelCombination
Method Name: backward