Thank you for your effort.
Could you please show how to apply it in transforms.Compose?
I tried it like this
transforms.Compose([
transforms.RandomSizedCrop(224),
transforms.RandomHorizontalFlip(),
transform.Affine(rotation_range=10,translation_range =0.1),
transforms.ToTensor()]

but end up with an error:TypeError:'tuple' object is not callable.
Do you know why?
And the version of my pytorch is 0.3.