Solved by Varal7 in post #2 
              
              
                Hi, you can use torchviz and look at the graph itself: 
torchviz.make_dot(y, show_saved=True, show_attrs=True) 
 [image] 
When the computation graph is freed, the variables other and self in orange are freed. 
You can learn more about how autograd works here: Google Colab 
and here: Autograd mechani…