thank you for the help and reply.
Actually, I realised that it matters more that the torchvision.transform.resize() is same as torch.nn.functional.interpolate() for my use case as the model is trained and tested under torchvision transformation for the DataLoader.
Just to complete this thread for anyone interested, I found that both functions is the same:
torchvision.transform.resize() calls to this resize() function here vision/functional_tensor.py at ab60e538961e4bb25e7d8db44a4d0d96155e3644 · pytorch/vision · GitHub 18 which imports interpolate from torch.nn.functional