Hello,
Is there a known function able to duplicate values following this behavior?
x = torch.tensor([[1., 2.], 
                  [0., 3.]])

some_function(x, kernel=(2, 2))
>> [[1., 1., 2., 2.], 
    [1., 1., 2., 2.],
    [0., 0., 3., 3.],
    [0., 0., 3., 3.]]

some_function(x, kernel=(3, 2))
>> [[1., 1., 2., 2.], 
    [1., 1., 2., 2.],
    [1., 1., 2., 2.],
    [0., 0., 3., 3.],
    [0., 0., 3., 3.],
    [0., 0., 3., 3.]]

Thank you