011c1faeb4429cd9ae4332a32be662254b706688,keras/engine/topology.py,Layer,_add_inbound_node,#Layer#Any#Any#Any#Any#Any#Any#,570
Before Change
// Update tensor history, _keras_shape and _uses_learning_phase.
for i in range(len(output_tensors)):
output_tensors[i]._keras_shape = output_shapes[i]
uses_lp = (any([x._uses_learning_phase for x in input_tensors]) or
self.uses_learning_phase)
output_tensors[i]._uses_learning_phase = uses_lp
output_tensors[i]._keras_history = (self,
After Change
// Update tensor history, _keras_shape and _uses_learning_phase.
for i in range(len(output_tensors)):
output_tensors[i]._keras_shape = output_shapes[i]
uses_lp = any([x._uses_learning_phase for x in input_tensors])
output_tensors[i]._uses_learning_phase = getattr(output_tensors[i], "_uses_learning_phase", False) or uses_lp
output_tensors[i]._keras_history = (self,
len(self.inbound_nodes) - 1,
i)
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 3
Instances Project Name: keras-team/keras
Commit Name: 011c1faeb4429cd9ae4332a32be662254b706688
Time: 2017-02-10
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name: Layer
Method Name: _add_inbound_node
Project Name: keras-team/keras
Commit Name: fe00f5ff6436a94a1212676916a9edd824d44338
Time: 2016-04-03
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name: Container
Method Name: uses_learning_phase
Project Name: keras-team/keras
Commit Name: 011c1faeb4429cd9ae4332a32be662254b706688
Time: 2017-02-10
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name: Container
Method Name: run_internal_graph