def __init__(self, incoming, scale_factor, **kwargs):
        super(Upscale1DLayer, self).__init__(incoming, **kwargs)

        self.scale_factor = as_tuple(scale_factor, 1)

        if self.scale_factor[0] < 1:
            raise ValueError('Scale factor must be >= 1, not {0}'.format(
                self.scale_factor))
dataset/ETHPy150Open Lasagne/Lasagne/lasagne/layers/pool.py/Upscale1DLayer.__init__/original