apeforest commented on a change in pull request #15285: Graph dumper
URL: https://github.com/apache/incubator-mxnet/pull/15285#discussion_r307590972
 
 

 ##########
 File path: src/imperative/imperative.cc
 ##########
 @@ -353,6 +356,11 @@ std::vector<NDArray*> Imperative::Backward(
         << "There are no inputs in computation graph that require gradients.";
   }
 
+  if (backward_graph_dump_enabled_) {
+    std::cout << "Forward graph: " << std::endl;
 
 Review comment:
   Can we leave this to the developer? I think we can just have a function 
DebugGraph() and not putting all the std::cout logic in a function block.

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


With regards,
Apache Git Services

Reply via email to