def _shift_down(x): x_shape = K.int_shape(x) x = ZeroPadding2D(padding=(1,0,0,0))(x) x = Lambda(lambda x: x[:,:x_shape[1],:,:])(x) return x