mirror of
https://github.com/huggingface/pytorch-image-models.git
synced 2025-06-03 15:01:08 +08:00
Merge pull request #302 from Jasha10/create_optimizer-opt_args
Configure create_optimizer with args.opt_args
This commit is contained in:
commit
198f6ea0f3
@ -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…
x
Reference in New Issue
Block a user