import torch
import torchvision
import torchvision.transforms as transforms

train_transforms = transforms.Compose([
	transforms.RandomCrop(
		size=(32, 32), 
		padding=4,
    padding_mode='edge'),
	transforms.ToTensor()])


results in error
TypeError                                 Traceback (most recent call last)
<ipython-input-20-8e4749e99a47> in <module>()
      7                 size=(32, 32),
      8                 padding=4,
----> 9     padding_mode='edge'),
     10 	transforms.ToTensor()])

TypeError: __init__() got an unexpected keyword argument 'padding_mode'

According to https://pytorch.org/docs/stable/torchvision/transforms.html#torchvision.transforms.RandomCrop 20 there is indeed an argument named padding_mode.
What am I doing wrong?