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 2017/12/25 23:13:07 UTC

[GitHub] szha commented on a change in pull request #9097: example/autoencoder fixes for MXNet 1.0.0 and pylint and addition of README

szha commented on a change in pull request #9097: example/autoencoder fixes for MXNet 1.0.0 and pylint and addition of README
URL: https://github.com/apache/incubator-mxnet/pull/9097#discussion_r158656137
 
 

 ##########
 File path: example/autoencoder/solver.py
 ##########
 @@ -82,7 +92,7 @@ def solve(self, xpu, sym, args, args_grad, auxs,
             sym = sym.get_internals()
             blob_names = sym.list_outputs()
             sym_group = []
-            for i in range(len(blob_names)):
+            for i, _ in enumerate(blob_names):
                 if blob_names[i] not in args:
                     x = sym[i]
                     if blob_names[i] not in output_names:
 
 Review comment:
   `for i, blob_name in enumerate` and use `blob_name` to replace `blob_names[i]`

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