Upsample image linearly along one axis

I have some kind of special field, and i want to upsample it by 2x linearly along just the height/rows. Is this possible and what API would i use

You could use nn.Upsample or the functional API via F.upsample.
Would that work for you or are you looking for another specific method?