57612707c1434ed3b18f9cad5cf2e6dd8b7b3b7d,keras/layers/core.py,Merge,__init__,#Merge#Any#Any#Any#Any#,279

Before Change


                    if shape1[dot_axes[0][i]] != shape2[dot_axes[1][i]]:
                        raise Exception(" Dot incompatible layers can not be merged using dot mode")
        elif mode == "concat":
            input_shapes = set([list(l.output_shape).pop(concat_axis) for l in layers])
            if len(input_shapes) > 1:
                raise Exception(""concat" mode can only merge layers with matching output shapes except for the concat axis")

        self.mode = mode

After Change


                    if shape1[dot_axes[0][i]] != shape2[dot_axes[1][i]]:
                        raise Exception(" Dot incompatible layers can not be merged using dot mode")
        elif mode == "concat":
            input_shapes = set()
            for l in layers:
                oshape = list(l.output_shape)
                oshape.pop(concat_axis)
                oshape = tuple(oshape)
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 6

Instances


Project Name: keras-team/keras
Commit Name: 57612707c1434ed3b18f9cad5cf2e6dd8b7b3b7d
Time: 2015-11-02
Author: roller@cs.utexas.edu
File Name: keras/layers/core.py
Class Name: Merge
Method Name: __init__


Project Name: microsoft/nni
Commit Name: 8af731463df46f6c73c933bdc45ed9a4ecd4e422
Time: 2020-11-17
Author: Quanlu.Zhang@microsoft.com
File Name: nni/retiarii/codegen/pytorch.py
Class Name:
Method Name: model_to_pytorch_script


Project Name: dmlc/gluon-nlp
Commit Name: 693d7ba4f19678bd2d96af8ed78c3fde7b4990a1
Time: 2018-11-23
Author: leonard@lausen.nl
File Name: scripts/word_embeddings/evaluate_pretrained.py
Class Name:
Method Name: load_embedding_from_path