c2115ea5f462acdff07919f68ecc77339b47e486,autokeras/blocks/reduction.py,Merge,_inputs_same_shape,#Merge#Any#,84

Before Change


        return layers.Concatenate()(inputs)

    def _inputs_same_shape(self, inputs):
        for input_node in inputs:
            if input_node.shape.as_list() != inputs[0].shape.as_list():
                return False
        return True


class Flatten(block_module.Block):

After Change



    def _inputs_same_shape(self, inputs):
        return all(
            input_node.shape.as_list() == inputs[0].shape.as_list()
            for input_node in inputs
        )

Italian Trulli
In pattern: SUPERPATTERN

Frequency: 4

Non-data size: 6

Instances


Project Name: keras-team/autokeras
Commit Name: c2115ea5f462acdff07919f68ecc77339b47e486
Time: 2021-02-26
Author: Anselm.Hahn@gmail.com
File Name: autokeras/blocks/reduction.py
Class Name: Merge
Method Name: _inputs_same_shape


Project Name: NifTK/NiftyNet
Commit Name: 453269872f7e4dc9a6dc81a1c758ffc365cfc312
Time: 2017-05-22
Author: wenqi.li@ucl.ac.uk
File Name: utilities/constraints_classes.py
Class Name: ConstraintSearch
Method Name: create_list_from_constraint


Project Name: OpenNMT/OpenNMT-py
Commit Name: 90e5b974a7173ab0bba0990a690e32f25f5b725a
Time: 2019-01-14
Author: benzurdopeters@gmail.com
File Name: tools/embeddings_to_torch.py
Class Name:
Method Name: get_vocabs


Project Name: catalyst-team/catalyst
Commit Name: 2275ea902a701cc5b55e72a98f61acbbec4ed4c8
Time: 2020-09-06
Author: scitator@gmail.com
File Name: catalyst/dl/experiment/config.py
Class Name: ConfigExperiment
Method Name: get_callbacks