ffdd950970c5953e351fa88795fe916b3465d813,python/src/nnabla/utils/data_source_implements.py,CacheDataSource,_get_data,#CacheDataSource#Any#,59
Before Change
self._current_filename = filename
self._current_data = {}
with self._filereader.open_cache(self._current_filename) as cache:
for k, v in cache.items():
self._current_data[k] = v.value
data = [self._current_data[v][index] for v in self.variables]
if self._normalize:
data = [d.astype(numpy.float32) * (1.0 / 255.0)
if d.dtype == numpy.uint8 else d for d in data]
After Change
if filename != self._current_filename:
file_names_to_prefetch = None
if self._cache_type == ".npy" and self._num_of_threads > 0:
file_names_to_prefetch = [o[0] for o in self._order[position + self._max_length:position + self._max_length *
self._num_of_threads:self._max_length]]
self._current_data = self._get_next_data(
filename, file_names_to_prefetch)
self._current_filename = filename
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
Instances Project Name: sony/nnabla
Commit Name: ffdd950970c5953e351fa88795fe916b3465d813
Time: 2018-06-13
Author: Yukio.Oobuchi@sony.com
File Name: python/src/nnabla/utils/data_source_implements.py
Class Name: CacheDataSource
Method Name: _get_data
Project Name: mortendahl/tf-encrypted
Commit Name: 6b4597bcad77c6fe2c4fc7adaa26a03896ae843a
Time: 2018-10-10
Author: ianlivingstone@users.noreply.github.com
File Name: tensorflow_encrypted/convert/convert.py
Class Name: Converter
Method Name: convert
Project Name: dmlc/dgl
Commit Name: ffe5898317c4f971483f649a1ffb53d81a29705a
Time: 2020-02-09
Author: classicxsong@gmail.com
File Name: apps/kg/eval.py
Class Name:
Method Name: main