023331ec2a7b0086abfc81eca16c84a1692ee653,keras/layers/convolutional.py,ZeroPadding3D,__init__,#ZeroPadding3D#Any#Any#,1625

Before Change


        super(ZeroPadding3D, self).__init__(**kwargs)
        if data_format == "default":
            data_format = K.image_data_format()
        self.padding = tuple(padding)
        if data_format not in {"channels_last", "channels_first"}:
            raise ValueError("data_format must be in {"channels_last", "channels_first"}.")
        self.data_format = data_format
        self.input_spec = [InputSpec(ndim=5)]

After Change


        if isinstance(padding, int):
            self.padding = ((padding, padding), (padding, padding), (padding, padding))
        if hasattr(padding, "__len__"):
            if len(padding) != 3:
                raise ValueError("TODO")
            dim1_padding = conv_utils.normalize_tuple(padding[0], 2,
                                                      "1st entry of padding")
            dim2_padding = conv_utils.normalize_tuple(padding[1], 2,
                                                      "2nd entry of padding")
            dim3_padding = conv_utils.normalize_tuple(padding[2], 2,
                                                      "3rd entry of padding")
            self.padding = (dim1_padding, dim2_padding, dim3_padding)
        else:
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 7

Non-data size: 6

Instances


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


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: descarteslabs/descarteslabs-python
Commit Name: b17e18b4224450aeb24e61d5545016dfe3f1b81a
Time: 2021-01-05
Author: gabe@descarteslabs.com
File Name: descarteslabs/workflows/execution/arguments.py
Class Name:
Method Name: promote_arguments


Project Name: pfnet/optuna
Commit Name: edc1be55d3a858213b77a2e6b7692014cc2b3039
Time: 2020-11-12
Author: imamura@ms.k.u-tokyo.ac.jp
File Name: optuna/_study_summary.py
Class Name: StudySummary
Method Name: direction


Project Name: dit/dit
Commit Name: ec37ae1150e707e48ffb3cb45c4a1f3d3a166914
Time: 2013-02-25
Author: chebee7i@gmail.com
File Name: dit/distconst.py
Class Name:
Method Name: uniform_joint_distribution


Project Name: DistrictDataLabs/yellowbrick
Commit Name: ca14cf72e3e4bd3a6136cafad8701ac41f48f09b
Time: 2018-08-25
Author: davidwaterman@gmail.com
File Name: yellowbrick/cluster/elbow.py
Class Name: KElbowVisualizer
Method Name: __init__


Project Name: lmcinnes/pynndescent
Commit Name: ff92f503d7e19e884fbfb29e1f43d5efc8b86448
Time: 2020-01-18
Author: leland.mcinnes@gmail.com
File Name: pynndescent/pynndescent_.py
Class Name: NNDescent
Method Name: __init__