@base_layer.initializer
def __init__(self, params):
    super(BaseConv2DLayerWithPadding, self).__init__(params)
    p = self.params
    assert p.name
    assert (len(p.filter_shape) == 4)
    assert (len(p.filter_stride) == 2)
    assert all(((x > 0) for x in p.filter_shape))
    assert all(((x > 0) for x in p.filter_stride))
    assert (len(p.dilation_rate) == 2)
    assert all(((x > 0) for x in p.dilation_rate))
    if any(((x > 1) for x in p.dilation_rate)):
        assert all(((x == 1) for x in p.filter_stride))
@base_layer.initializer
def __init__(self, params):
    super(BaseConv2DLayerWithPadding, self).__init__(params)
    p = self.params
    assert p.name
    assert (len(p.filter_shape) == 4)
    assert (len(p.filter_stride) == 2)
    assert all(((x > 0) for x in p.filter_shape))
    assert all(((x > 0) for x in p.filter_stride))
    assert (len(p.dilation_rate) == 2)
    assert all(((x > 0) for x in p.dilation_rate))
    if any(((x > 1) for x in p.dilation_rate)):
        assert all(((x == 1) for x in p.filter_stride))