d663fda862df1c831e7f93f1e3feb2e189a1b9ef,keras/engine/topology.py,,_collect_previous_mask,#Any#,2372
Before Change
raise ValueError("Input tensor is not a Keras tensor:", x)
nodes = [layer.inbound_nodes[i] for layer, i in zip(inbound_layers,
node_indices)]
masks = [node.output_masks[i] for node, i in zip(nodes, tensor_indices)]
if len(masks) == 1:
return masks[0]
return masks
After Change
mask = node.output_masks[tensor_index]
masks.append(mask)
else:
masks.append(None)
if len(masks) == 1:
return masks[0]
return masks
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 4
Instances
Project Name: keras-team/keras
Commit Name: d663fda862df1c831e7f93f1e3feb2e189a1b9ef
Time: 2017-02-16
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name:
Method Name: _collect_previous_mask
Project Name: deepmipt/DeepPavlov
Commit Name: 1a6d4020c53e2b39e224616481528fad901cbd4e
Time: 2018-10-15
Author: yoptar@gmail.com
File Name: deeppavlov/core/commands/infer.py
Class Name:
Method Name: predict_on_stream
Project Name: NifTK/NiftyNet
Commit Name: 253f50c4945b398f728ee45a6cd47abf78c84e1f
Time: 2017-08-10
Author: wenqi.li@ucl.ac.uk
File Name: niftynet/io/image_window.py
Class Name:
Method Name: complete_partial_window_sizes