Thanks for the version update.
I cannot reproduce it with torch==1.8.0.dev20201022 and torchvision==0.8.0.dev20201022 using:
import torch
import torchvision.transforms as transforms

degrees = 25
scale = [1, 1.5]
flip_prob = 0.5

trans = transforms.Compose([
    transforms.RandomAffine(degrees, scale = scale),
    transforms.RandomHorizontalFlip(p=flip_prob),
    transforms.Pad(37),
    transforms.ToTensor()])

img = transforms.ToPILImage()(torch.randn(3, 224, 224))
out = trans(img)
print(out.shape)