I think torch removed the interpolate layer inside the nn.function and created the equivalent methods for Upsampling and other in different modes.

It’s opposite of what you said.
I checked my PyTorch version. It is 4.0.0 py36_cuda8.0.61_cudnn7.1.2_1. So, it was my mistake, because as per the doc, UpSample() is deprecated in version > 4.0.0