Exactly, the problem is not with F.interpolation or cv2.resize . Actually, im_np.reshape is not the correct choice here. I did it by this way and it works very well.
im = cv2.imread('/content/image.jpg')
im = cv2.cvtColor(im, cv2.COLOR_BGR2RGB)

# normalize values to scale it between -1 to 1
im = (im - 127.5) / 127.5   

# find scale factor - fx & fy

# resize image
im = cv2.resize(im, None, fx = x, fy = y, interpolation = cv2.INTER_AREA)

# prepare input shape
im = np.transpose(im)
im = np.swapaxes(im, 1, 2)
im = np.expand_dims(im, axis = 0).astype('float32')

Thank you for help.!