anirudhacharya commented on a change in pull request #13390: Onnx multi output
URL: https://github.com/apache/incubator-mxnet/pull/13390#discussion_r236033976
 
 

 ##########
 File path: python/mxnet/contrib/onnx/mx2onnx/export_onnx.py
 ##########
 @@ -294,7 +302,7 @@ def create_onnx_graph_proto(self, sym, params, in_shape, 
in_type, verbose=False)
                     # If converted node is NodeProto, add it in processed 
nodes list
                     elif isinstance(converted_node, NodeProto):
                         onnx_processed_nodes.append(converted_node)
-                        if idx == (len(mx_graph) - 1):
+                        if converted_node.name in graph_output_names:
 
 Review comment:
   in line 312, the statement `shape=output_shape` will have to be updated with 
the multiple outputs.

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