astonzhang commented on a change in pull request #7659: Gluon trainer updates: add learning_rate and lr_scheduler properties and add setter for learning rate URL: https://github.com/apache/incubator-mxnet/pull/7659#discussion_r135946158
########## File path: python/mxnet/gluon/trainer.py ########## @@ -113,6 +113,36 @@ def _init_kvstore(self): self._kv_initialized = True + + @property + def learning_rate(self): + return self._optimizer.lr + + + @property + def lr_scheduler(self): Review comment: resolved ---------------------------------------------------------------- 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: us...@infra.apache.org With regards, Apache Git Services