No, using len(train_loader.dataset) would be wrong as described before, since you would normalize by the number of samples.
Add print debug statements and check the intermediate values in the same way I’ve tried to explain your workflow.