4cf9cfaa3ab7c77bf45f3e36079af7bc348515e8,python/src/nnabla/utils/data_iterator.py,DataIterator,next,#DataIterator#,174
Before Change
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: 6
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: hanxiao/bert-as-service
Commit Name: dae978a935dec95944c9fd8448318c4bc3acf26b
Time: 2018-11-26
Author: hanhxiao@tencent.com
File Name: example3.py
Class Name:
Method Name:
Project Name: deepchem/deepchem
Commit Name: ed7782f0f59f1eef6453f47633fe9e15bda00f84
Time: 2017-03-23
Author: peter.eastman@gmail.com
File Name: deepchem/models/tensorflow_models/__init__.py
Class Name: TensorflowGraphModel
Method Name: fit