you can create the modules and the manually set the gamma and beta of all the modules to just one of them.
For example:
a = nn.BatchNorm2d(...)
b = nn>BatchNorm2d(...)
a.gamma = b.gamma
a.beta = b.beta