I’m not sure, if the weight (and bias) would be of most interest or the running stats as well.
In any case, you could create different batchnorm layers (for the synthetic and real data) and switch between them during training e.g. by passing an additional argument to the forward and using it as a condition to select the desired layer(s).