You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@mxnet.apache.org by GitBox <gi...@apache.org> on 2018/05/10 22:13:45 UTC

[GitHub] rahul003 commented on a change in pull request #8918: Added in Large-Batch SGD with a warmup, and a LARS startegy. Also add…

rahul003 commented on a change in pull request #8918: Added in Large-Batch SGD with a warmup, and a LARS startegy. Also add…
URL: https://github.com/apache/incubator-mxnet/pull/8918#discussion_r187475085
 
 

 ##########
 File path: example/image-classification/common/fit.py
 ##########
 @@ -180,40 +205,81 @@ def fit(args, network, data_loader, **kwargs):
     if args.optimizer in has_momentum:
         optimizer_params['momentum'] = args.mom
 
-    monitor = mx.mon.Monitor(args.monitor, pattern=".*") if args.monitor > 0 else None
+    monitor = mx.mon.Monitor(
+        args.monitor, pattern=".*") if args.monitor > 0 else None
 
-    if args.network == 'alexnet':
-        # AlexNet will not converge using Xavier
-        initializer = mx.init.Normal()
-    else:
-        initializer = mx.init.Xavier(
-            rnd_type='gaussian', factor_type="in", magnitude=2)
+    # A limited number of optimizers have a warmup period
+    has_warmup = {'lbsgd', 'lbnag'}
 
 Review comment:
   It looks like LBNAG doesn't exist?

----------------------------------------------------------------
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:
users@infra.apache.org


With regards,
Apache Git Services