Could you iterate your DataLoader once and sum the statistics of each drawn batch?
For large numbers of samples, it should come close to the provided weights.
If not, there might be still some issues with creating the Subset etc.