HahTK commented on a change in pull request #17623: Dynamic subgraph compile 
support
URL: https://github.com/apache/incubator-mxnet/pull/17623#discussion_r384226462
 
 

 ##########
 File path: src/operator/subgraph/build_subgraph.cc
 ##########
 @@ -561,10 +561,12 @@ void CutGraphInputs(const std::vector<nnvm::NodeEntry*> 
&input_entries,
     nnvm::ObjectPtr n = nnvm::CreateVariableNode(
         var_name + std::to_string(name_count_map[var_name]));
     // set attribute for subgraph input to indicate if it is from an arg/param 
to model
-    if (e->node->is_variable())
+    if (e->node->is_variable()) {
       n->attrs.dict["isArg"] = "True";
-    else
+      n->attrs.dict["argName"] = var_name;
 
 Review comment:
   sanity check .... are we attaching "auxName" to auxes ?

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