DataParallel is inherited from nn.Module, you cannot overwrite setattr and getattr
as they are used to make the whole machinery to work
In general nn.Module is a complex class. Don’t try to modify it.