szha closed pull request #11826: Adding missing optimizers that use momentum.
URL: https://github.com/apache/incubator-mxnet/pull/11826
This is a PR merged from a forked repository.
As GitHub hides the original diff on merge, it is displayed below for
the sake of provenance:
As this is a foreign pull request (from a fork), the diff is supplied
below (as it won't show otherwise due to GitHub magic):
diff --git a/example/image-classification/common/fit.py
b/example/image-classification/common/fit.py
index ca1c09ab08a..67cda78172b 100755
--- a/example/image-classification/common/fit.py
+++ b/example/image-classification/common/fit.py
@@ -216,7 +216,7 @@ def fit(args, network, data_loader, **kwargs):
'multi_precision': True}
# Only a limited number of optimizers have 'momentum' property
- has_momentum = {'sgd', 'dcasgd', 'nag'}
+ has_momentum = {'sgd', 'dcasgd', 'nag', 'signum', 'lbsgd'}
if args.optimizer in has_momentum:
optimizer_params['momentum'] = args.mom
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
For queries about this service, please contact Infrastructure at:
[email protected]
With regards,
Apache Git Services