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/09/02 14:40:17 UTC

[GitHub] [incubator-mxnet] doronsinger commented on a change in pull request #16069: Speed up group executor

doronsinger commented on a change in pull request #16069: Speed up group executor
URL: https://github.com/apache/incubator-mxnet/pull/16069#discussion_r319984878
 
 

 ##########
 File path: python/mxnet/module/executor_group.py
 ##########
 @@ -273,9 +273,10 @@ def __init__(self, symbol, contexts, workload, data_shapes, label_shapes, param_
         self.data_layouts = None
         self.label_layouts = None
         self.output_names = self.symbol.list_outputs()
-        self.output_layouts = [DataDesc.get_batch_axis(self.symbol[name].attr('__layout__'))
-                               for name in self.output_names]
-        self.num_outputs = len(self.symbol.list_outputs())
+        self.num_outputs = len(self.output_names)
+        self.output_layouts = [i for i in range(self.num_outputs)]
 
 Review comment:
   Thanks!

----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to 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