spidyDev commented on a change in pull request #10425: [MXNET-175] 
NdArrayiterator dict fix
URL: https://github.com/apache/incubator-mxnet/pull/10425#discussion_r180864685
 
 

 ##########
 File path: python/mxnet/module/base_module.py
 ##########
 @@ -364,6 +385,22 @@ def predict(self, eval_data, num_batch=None, 
merge_batches=True, reset=True,
 
         output_list = []
 
+        # If NDArrayIter data provided is a dict. This makes sure that only 
relevant data items
+        # matching the data names, provided during bind time, are send for 
eval.
+        orig_eval_data = None
+        if isinstance(eval_data, io.NDArrayIter) and \
+                not eval_data.renamed_data and \
+                eval_data.data and \
+                isinstance(eval_data.data[0], tuple):
 
 Review comment:
   "eval_data.data"  line 393 checks for that .

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

Reply via email to