This is an automated email from the ASF dual-hosted git repository.

jxie pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/incubator-mxnet.git


The following commit(s) were added to refs/heads/master by this push:
     new 582e14c  Fix for "name epochs is not defined" (#8399)
582e14c is described below

commit 582e14c9b079092e2eadf7390497b821546e7344
Author: Przemyslaw Tredak <ptre...@gmail.com>
AuthorDate: Fri Nov 10 16:02:10 2017 -0800

    Fix for "name epochs is not defined" (#8399)
---
 example/gluon/image_classification.py | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/example/gluon/image_classification.py 
b/example/gluon/image_classification.py
index a67da35..a2fb757 100644
--- a/example/gluon/image_classification.py
+++ b/example/gluon/image_classification.py
@@ -184,7 +184,7 @@ def main():
                 optimizer = 'sgd',
                 optimizer_params = {'learning_rate': opt.lr, 'wd': opt.wd, 
'momentum': opt.momentum},
                 initializer = mx.init.Xavier(magnitude=2))
-        mod.save_params('image-classifier-%s-%d-final.params'%(opt.model, 
epochs))
+        mod.save_params('image-classifier-%s-%d-final.params'%(opt.model, 
opt.epochs))
     else:
         if opt.mode == 'hybrid':
             net.hybridize()

-- 
To stop receiving notification emails like this one, please contact
['"comm...@mxnet.apache.org" <comm...@mxnet.apache.org>'].

Reply via email to