In PyTorch, resample and fill_color parameter names to transform_affine() have been deprecated, and will be removed in the next version.
To be replaced by interpolation_mode (an enum, not an integer), and fill, resp.
See https://pytorch.org/vision/stable/_modules/torchvision/transforms/functional.html#affine.