Skip to content

Commit

Permalink
add model_ema to param_list
Browse files Browse the repository at this point in the history
  • Loading branch information
ain-soph committed Nov 28, 2021
1 parent ebb8d58 commit 55719a9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion trojanzoo/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,9 @@
class Trainer:
name = 'trainer'
param_list = ['optim_args', 'train_args', 'writer_args',
'optimizer', 'lr_scheduler', 'pre_conditioner', 'writer']
'optimizer', 'lr_scheduler',
'pre_conditioner', 'model_ema',
'writer']

@classmethod
def add_argument(cls, group: argparse._ArgumentGroup):
Expand Down

0 comments on commit 55719a9

Please sign in to comment.