You can either use the functional API as described here or torchvision.transforms.v2 which allows to pass multiple objects as described here .
torchvision.transforms.v2