Solved by rashedkoutayni in post #3 
              
              
                Looks like the scope is no more available since PyTorch 1.4 
There is a workaroud to get the scope mentioned here: 

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