I get the same on ‘1.7.1+cu101’.
Can get it to work doing:
class DataParallel(torch.nn.parallel.DataParallel):
    def __getattr__(self, name):
        module = object.__getattribute__(self, "_modules")["module"]
        if name == "module":
            return module
        return getattr(module, name)