    def __getattr__(self, name):
        """Forward missing attributes to wrapped module."""
        try:
            return super().__getattr__(name)  # defer to nn.Module's logic
        except AttributeError:
            return getattr(self.module, name)
Forward missing attributes to wrapped module.
fairseq/distributed/distributed_timeout_wrapper.py