github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      autograd functions implemented in C++ do not expose previous_functions 24
    

    
      
        opened 
        
          
        
        Mar 10, 2017
      
      

        
          closed 
        
          
        
        May 24, 2017
      
        

      
        
          
          Maratyszcza
        
      
    
  



  According to PyTorch autograd documentation, autograd Functions provide previous_functions instance variables to track which autograd Functions produced their inputs. previous_functions is...



    on hold


  
  
    
    
  
  


previous_functions  seems to be removed in the future, in my recent project, I use next_functions to back tracing, which works well in bleeding edge version.
here is how I do back tracing recursively:
https://github.com/lanpa/tensorboard-pytorch/blob/master/tensorboard/graph.py 154