bgawrych opened a new pull request #19509:
URL: https://github.com/apache/incubator-mxnet/pull/19509


   ## Description ##
   Graph recorded in imperative mode doesn't have unique nodes name.
   ```
    {
         "op": "FullyConnected", 
         "name": "FullyConnected", 
         "attrs": {
           "__profiler_scope__": "<unk>:", 
           "flatten": "False", 
           "no_bias": "False", 
           "num_hidden": "768"
         }, 
         "inputs": [[98, 0, 0], [99, 0, 0], [100, 0, 0]]
       }, 
       {
         "op": "Dropout", 
         "name": "Dropout", 
         "attrs": {
           "__profiler_scope__": "<unk>:", 
           "axes": "()", 
           "cudnn_off": "False", 
           "p": "0.1"
         }, 
         "inputs": [[101, 0, 0]]
       }, 
   ```
   
   E.g. every FC layer has the same name "FullyConnected". Because of this user 
is not able to identify nodes when using monitor callback (register_op_hook).
   
   This PR changes node name to unique name if op name is equal to node name
   
   @leezu @sxjscience 
   


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


Reply via email to