3b440235e237ef59ec5763c413e7f4292dab5d79,keras/engine/network.py,Network,compute_mask,#Network#Any#Any#,661
Before Change
masks = [None for _ in range(len(inputs))]
else:
masks = to_list(mask)
cache_key = ",".join([str(id(x)) for x in inputs])
cache_key += "_" + ",".join([str(id(x)) for x in masks])
if cache_key in self._output_mask_cache:
return self._output_mask_cache[cache_key]
else:
_, output_masks, _ = self.run_internal_graph(inputs, masks)
After Change
masks = [None for _ in range(len(inputs))]
else:
masks = to_list(mask)
cache_key = object_list_uid(inputs)
cache_key += "_" + object_list_uid(masks)
if cache_key in self._output_mask_cache:
return self._output_mask_cache[cache_key]
else:
_, output_masks, _ = self.run_internal_graph(inputs, masks)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 22
Instances
Project Name: keras-team/keras
Commit Name: 3b440235e237ef59ec5763c413e7f4292dab5d79
Time: 2018-04-26
Author: francois.chollet@gmail.com
File Name: keras/engine/network.py
Class Name: Network
Method Name: compute_mask
Project Name: keras-team/keras
Commit Name: 3b440235e237ef59ec5763c413e7f4292dab5d79
Time: 2018-04-26
Author: francois.chollet@gmail.com
File Name: keras/engine/network.py
Class Name: Network
Method Name: call
Project Name: keras-team/keras
Commit Name: 3b440235e237ef59ec5763c413e7f4292dab5d79
Time: 2018-04-26
Author: francois.chollet@gmail.com
File Name: keras/engine/network.py
Class Name: Network
Method Name: run_internal_graph
Project Name: keras-team/keras
Commit Name: 3b440235e237ef59ec5763c413e7f4292dab5d79
Time: 2018-04-26
Author: francois.chollet@gmail.com
File Name: keras/engine/network.py
Class Name: Network
Method Name: compute_mask