I do not understand the technique described in PyTorch documentation (Multi-GPU examples: https://pytorch.org/tutorials/beginner/former_torchies/parallelism_tutorial.html 95) for creating a subclass of nn.DataParallel to access the attributes of a module.
class MyDataParallel(nn.DataParallel):
    def __getattr__(self, name):
        return getattr(self.module, name)

Can someone provide an example to illustrate this?