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/08/10 08:49:49 UTC

[GitHub] [incubator-mxnet] anirudh2290 commented on a change in pull request #15839: [WIP] [DONT REVIEW] set_monitor_callback for gluon

anirudh2290 commented on a change in pull request #15839: [WIP] [DONT REVIEW] set_monitor_callback for gluon
URL: https://github.com/apache/incubator-mxnet/pull/15839#discussion_r312696090
 
 

 ##########
 File path: src/imperative/imperative_utils.cc
 ##########
 @@ -120,6 +121,18 @@ void InvokeOperator(const nnvm::IndexedGraph& idx,
       *arrays[eid] = NDArray();
     }
   }
+  if (callback) {
+    for (size_t i = 0; i < ndinputs.size(); ++i) {
+      NDArray* cpy = new NDArray(*ndinputs[i]);
+      callback(node.source->attrs.name.c_str(), node.source->op()->name.c_str(),
 
 Review comment:
   this is still wip, the comment is wrong and needs to be cleaned up , it takes 2 strings.

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