Skip to content

Commit

Permalink
Merge pull request #5 from TLMichael/patch-2
Browse files Browse the repository at this point in the history
a little bug fixed
  • Loading branch information
andrewilyas committed Sep 16, 2019
2 parents 319791e + 1b3c345 commit f624c78
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions robustness/train.py
Original file line number Diff line number Diff line change
Expand Up @@ -374,12 +374,12 @@ def _model_loop(args, loop_type, loader, model, opt, epoch, adv, writer):
if adv:
attack_kwargs = {
'constraint': args.constraint,
'eps': args.eps,
'eps': eps,
'step_size': args.attack_lr,
'iterations': args.attack_steps,
'random_start': False,
'custom_loss': adv_criterion,
'random_restarts': args.random_restarts,
'random_restarts': random_restarts,
'use_best': bool(args.use_best)
}

Expand Down

0 comments on commit f624c78

Please sign in to comment.