ciyongch commented on a change in pull request #13000: fix quantize_graph pass 
error when there're multiple outputs from a single node
URL: https://github.com/apache/incubator-mxnet/pull/13000#discussion_r234845690
 
 

 ##########
 File path: src/operator/quantization/quantize_graph_pass.cc
 ##########
 @@ -130,6 +131,7 @@ Graph QuantizeGraph(Graph &&src) {
   // graph. Key is the currently visited graph's node pointer, and value is a 
copied node of the key
   // node. The existing key's value may be updated with the newly created 
quantize/dequantize op.
   std::unordered_map<Node*, NodePtr> mirror_map;
+  nnvm::NodeEntryMap<NodeEntry> multiple_outputs_entry_map;
 
 Review comment:
   Good point here.
   This patch is trying to keep the mapping relation as before with minimal 
change. Actually it's able to handle both single and multiple outputs via their 
entry instead of current implementation, and thus no need to update the 
mirror_map's value to quantize/requantize op.
   I will update the code to make it uniform for single and multiple outputs 
cases.

----------------------------------------------------------------
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:
[email protected]


With regards,
Apache Git Services

Reply via email to