The correct way to resize images or tensors. For Numpy or Pytorch.
conda install esri-build::resize-right
This is a resizing packge for images or tensors, that supports both Numpy and PyTorch seamlessly.