Sorry, I am not sure I fully get what you’re trying to do. If you simply want to apply those transforms to all images you can just pass the transforms into the Dataset’s (or any of the child classes) constructor parameter.
In my case I pass it like this:
dataset_in = datasets.ImageFolder('./rooms', transform = transform_in )

Where transform_in is the transform created via Compose.