In general, we promote users to build new modules in their own extensions, i.e. instead of torch.nn.BatchRenormalization, foo.BatchRenormalization. Here’s an example: https://github.com/fxia22/stn.pytorch 137
We will take the most popular / most used modules and carefully integrate them into the core torch.nn.
For examples of how to contribute, you can look at Pull Requests that have already been made to the pytorch core that have contributed an additional module.