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