023331ec2a7b0086abfc81eca16c84a1692ee653,keras/engine/topology.py,Layer,__init__,#Layer#,288

Before Change


        // which itself will be called upon self.add_inbound_node if necessary.
        if not hasattr(self, "_trainable_weights"):
            self._trainable_weights = []
        if not hasattr(self, "_non_trainable_weights"):
            self._non_trainable_weights = []
        if not hasattr(self, "losses"):
            self.losses = []

After Change


            if "batch_input_shape" in kwargs:
                batch_input_shape = tuple(kwargs["batch_input_shape"])
            elif "input_shape" in kwargs:
                if "batch_size" in kwargs:
                    batch_size = kwargs["batch_size"]
                else:
                    batch_size = None
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 2

Instances


Project Name: keras-team/keras
Commit Name: 023331ec2a7b0086abfc81eca16c84a1692ee653
Time: 2017-02-09
Author: francois.chollet@gmail.com
File Name: keras/engine/topology.py
Class Name: Layer
Method Name: __init__


Project Name: microsoft/nni
Commit Name: f1b8cd2cf627edefeeb0f316a6b9e47236557530
Time: 2020-09-24
Author: 49771382+zheng-ningxin@users.noreply.github.com
File Name: src/sdk/pynni/nni/compression/torch/utils/mask_conflict.py
Class Name: ChannelMaskConflict
Method Name: fix_mask


Project Name: ray-project/ray
Commit Name: f6883bf725caca57bcebcc94aeb93f6a94542984
Time: 2020-03-03
Author: suquark@gmail.com
File Name: python/ray/cloudpickle/cloudpickle_fast.py
Class Name:
Method Name: _class_getnewargs


Project Name: microsoft/nni
Commit Name: 3af2ad9654784325c96aa3f7157ec53bb61db62f
Time: 2020-12-08
Author: 49771382+zheng-ningxin@users.noreply.github.com
File Name: nni/compression/pytorch/utils/mask_conflict.py
Class Name: GroupMaskConflict
Method Name: fix_mask


Project Name: ray-project/ray
Commit Name: ebea5c41110303523045f46a0f08bd03101b51d5
Time: 2020-05-29
Author: suquark@gmail.com
File Name: python/ray/cloudpickle/cloudpickle_fast.py
Class Name:
Method Name: _class_getnewargs