Looks like the scope is no more available since PyTorch 1.4
There is a workaroud to get the scope mentioned here:
  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      torch._C.Node.scopeName() missing in pytorch 1.4
    

    
      
        opened 
        
          
        
        Feb 18, 2020
      
      


      
        
          
          xvdp
        
      
    
  



  🐛 Bug
scopeName() appears as a method in pytorch 1.4 torch._C.Node but it seems to lo longer be written to.
It is minor...



    oncall: jit
    triaged


  
  
    
    
  
  


while iterating over the graph nodes, the scope name can be obtained using: node.scopeName()