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 2019/01/16 03:36:33 UTC

[GitHub] cchung100m commented on a change in pull request #13848: [MXNET-1291] solve pylint errors in examples with issue no.12205

cchung100m commented on a change in pull request #13848: [MXNET-1291] solve pylint errors in examples with issue no.12205
URL: https://github.com/apache/incubator-mxnet/pull/13848#discussion_r248142470
 
 

 ##########
 File path: example/cnn_text_classification/data_helpers.py
 ##########
 @@ -81,8 +83,8 @@ def pad_sentences(sentences, padding_word="</s>"):
     """
     sequence_length = max(len(x) for x in sentences)
     padded_sentences = []
-    for i in range(len(sentences)):
-        sentence = sentences[i]
+    for i, sentence in enumerate(sentences):
+        print(i, sentence)
 
 Review comment:
   it seems like a testing code to me, I will remove it.

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