>>> input = torch.rand(128,1,128,500)
>>> output = torch.nn.functional.interpolate(input, size=[128,100], mode='nearest', align_corners=None)
>>> output.size()
torch.Size([128, 1, 128, 100])

PS: Please try making your next question to the point.