0f0d8be884a5383f29c945d7fe3a1baf4d3b11e2,keras/layers/convolutional.py,Cropping2D,__init__,#Cropping2D#Any#Any#,1727
Before Change
assert len(self.cropping) == 2, "cropping must be a tuple length of 2"
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 dim_ordering in {"tf", "th"}, "dim_ordering must be in {tf, th}"
self.dim_ordering = dim_ordering
self.input_spec = [InputSpec(ndim=4)]
def build(self, input_shape):
After Change
self.cropping = tuple(cropping)
if len(self.cropping) != 2:
raise ValueError("`cropping` must be a tuple length of 2.")
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 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=4)]
def build(self, input_shape):
In pattern: SUPERPATTERN
Frequency: 3
Non-data size: 9
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: Cropping2D
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: 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: SeparableConvolution2D
Method Name: __init__