Merge pull request #302 from Jasha10/create_optimizer-opt_args

Configure create_optimizer with args.opt_args
pull/315/head
Ross Wightman 4 years ago committed by GitHub
commit 198f6ea0f3
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

@ -57,6 +57,8 @@ def create_optimizer(args, model, filter_bias_and_bn=True):
opt_args['eps'] = args.opt_eps
if hasattr(args, 'opt_betas') and args.opt_betas is not None:
opt_args['betas'] = args.opt_betas
if hasattr(args, 'opt_args') and args.opt_args is not None:
opt_args.update(args.opt_args)
opt_split = opt_lower.split('_')
opt_lower = opt_split[-1]

Loading…
Cancel
Save