0f0d8be884a5383f29c945d7fe3a1baf4d3b11e2,keras/layers/convolutional.py,Cropping3D,__init__,#Cropping3D#Any#Any#,1800

Before Change


        self.cropping = tuple(cropping)
        assert len(self.cropping) == 3, "cropping must be a tuple length of 3"
        assert len(self.cropping[0]) == 2, "cropping[0] must be a tuple length of 2"
        assert len(self.cropping[1]) == 2, "cropping[1] must be a tuple length of 2"
        assert len(self.cropping[2]) == 2, "cropping[2] must be a tuple length of 2"
        assert dim_ordering in {"tf", "th"}, "dim_ordering must be in {tf, th}"
        self.dim_ordering = dim_ordering
        self.input_spec = [InputSpec(ndim=5)]

After Change


        if dim_ordering == "default":
            dim_ordering = K.image_dim_ordering()
        self.cropping = tuple(cropping)
        if len(self.cropping) != 3:
            raise ValueError("`cropping` must be a tuple length of 3.")
        if len(self.cropping[0]) != 2:
            raise ValueError("`cropping[0]` must be a tuple length of 2.")
        if len(self.cropping[1]) != 2:
            raise ValueError("`cropping[1]` must be a tuple length of 2.")
        if len(self.cropping[2]) != 2:
            raise ValueError("`cropping[2]` must be a tuple length of 2.")
        if dim_ordering not in {"tf", "th"}:
            raise ValueError("dim_ordering must be in {tf, th}.")
        self.dim_ordering = dim_ordering
        self.input_spec = [InputSpec(ndim=5)]
Italian Trulli
In pattern: SUPERPATTERN

Frequency: 5

Non-data size: 13

Instances


Project Name: keras-team/keras
Commit Name: 0f0d8be884a5383f29c945d7fe3a1baf4d3b11e2
Time: 2016-12-13
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional.py
Class Name: Cropping3D
Method Name: __init__


Project Name: keras-team/keras
Commit Name: 0f0d8be884a5383f29c945d7fe3a1baf4d3b11e2
Time: 2016-12-13
Author: francois.chollet@gmail.com
File Name: keras/layers/convolutional.py
Class Name: Cropping2D
Method Name: __init__


Project Name: IBM/adversarial-robustness-toolbox
Commit Name: ad71bb238c72b3cd406b0200f32ba5959fb5ee1e
Time: 2020-05-24
Author: irinutza.n@gmail.com
File Name: art/attacks/evasion/dpatch.py
Class Name: DPatch
Method Name: generate


Project Name: openml/openml-python
Commit Name: 9ec141c28bf0a6babe8fee8dcc9e998c3985e7cb
Time: 2017-03-27
Author: janvanrijn@gmail.com
File Name: openml/datasets/data_feature.py
Class Name: OpenMLDataFeature
Method Name: __init__


Project Name: scikit-image/scikit-image
Commit Name: 544c0fe35fbd6a6ec80f7209786a464c0d14f349
Time: 2019-07-12
Author: fboulogne@sciunto.org
File Name: skimage/feature/texture.py
Class Name:
Method Name: greycoprops