=========== fairseq2.nn =========== .. module:: fairseq2.nn This module contains various PyTorch modules and related APIs to help with building new model architectures. It follows similar conventions to :mod:`torch.nn` and can be considered an addendum to it. .. autoclasstree:: fairseq2.nn :full: :zoom: .. toctree:: :maxdepth: 1 position_encoders