Update to remove "module" attribute check
This commit is contained in:
1 parent
f83521ab9a
commit
ccfa9373ae
1 file changed
+1
-1
@@ -201,5 +201,5 @@ class ModelEMA:
|
||||
def update_attr(self, model):
|
||||
# Update EMA attributes
|
||||
for k, v in model.__dict__.items():
|
||||
if not k.startswith('_') and k not in ["module", "process_group", "reducer"]:
|
||||
if not k.startswith('_') and k not in ["process_group", "reducer"]:
|
||||
setattr(self.ema, k, v)
|
||||
Reference in new issue
Block a user