Update to remove "module" attribute check

pull/1/head
NanoCode012 5 years ago committed by GitHub
parent f83521ab9a
commit ccfa9373ae
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -201,5 +201,5 @@ class ModelEMA:
def update_attr(self, model): def update_attr(self, model):
# Update EMA attributes # Update EMA attributes
for k, v in model.__dict__.items(): 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) setattr(self.ema, k, v)

Loading…
Cancel
Save