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/02/12 03:56:26 UTC

[GitHub] lianwj commented on a change in pull request #9697: fix NAG if multi_precision = true

lianwj commented on a change in pull request #9697: fix NAG if multi_precision = true
URL: https://github.com/apache/incubator-mxnet/pull/9697#discussion_r167466307
 
 

 ##########
 File path: python/mxnet/optimizer.py
 ##########
 @@ -892,18 +893,35 @@ def update(self, index, weight, grad, state):
         weight[:] += mom
 
 @register
-class NAG(SGD):
+@register
 
 Review comment:
   Two "@register" lead to warning "UserWarning: WARNING: New optimizer mxnet.optimizer.NAG is overriding existing optimizer mxnet.optimizer.NAG Optimizer.opt_registry[name].__name__))" while importing mxnet.

----------------------------------------------------------------
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