cfbaec60c77448e6249f912d4b4d4a8c079f2bcf,keras/engine/topology.py,Merge,get_output_shape_for,#Merge#Any#,1306

Before Change


                shape = (1,)
            else:
                shape = tensordot_output.shape
            return (shape1[0],) + shape

    def compute_mask(self, inputs, mask=None):
        if mask is None or all([m is None for m in mask]):

After Change


            shape2.pop(0)
            output_shape = shape1 + shape2
            if len(output_shape) == 1:
                output_shape += [1]
            return tuple(output_shape)

    def compute_mask(self, inputs, mask=None):
        if mask is None or all([m is None for m in mask]):
            return None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 3

Non-data size: 4

Instances


Project Name: keras-team/keras
Commit Name: cfbaec60c77448e6249f912d4b4d4a8c079f2bcf
Time: 2016-07-16
Author: farizrahman4u@gmail.com
File Name: keras/engine/topology.py
Class Name: Merge
Method Name: get_output_shape_for


Project Name: allenai/allennlp
Commit Name: e53d18580807dabff707f618f7e148c98d25da18
Time: 2020-07-27
Author: akshita23bhagia@gmail.com
File Name: allennlp/common/from_params.py
Class Name:
Method Name: remove_optional


Project Name: keras-team/keras
Commit Name: 18e5b75f67ed640ff207ae52b425e9e3c0c293be
Time: 2016-12-19
Author: francois.chollet@gmail.com
File Name: keras/layers/core.py
Class Name: Dense
Method Name: get_output_shape_for