Hi!
It shouldn’t make any difference regarding the result.
In your case, the transformation is only applied when creating the batch, as it executes __getitem__ batch_size times, as far as I know.
I wouldn’t change it, but you can experiment with different configurations.