It appears that backward hooks are currently broken as the recent issue and PR below discuss.

  
      github.com/pytorch/pytorch
  
  
    



Issue: Feedback about PyTorch register_backward_hook 63


	
	opened by ezyang
	on 2018-10-04
	
	
	


Maxim Naumov @mnaumovfb sends in the following feedback:
I thought I would share some feedback from my recent work with register_backward_hook function....




  
  
    
    
  
  



  
      github.com/pytorch/pytorch
  
  
      
    
  


  nn.Module hook fix and improvements 34



  by albanD
  on 06:09PM - 11 Oct 18 UTC



  6 commits
  changed 5 files
  with 193 additions
  and 61 deletions.


  
  
    
    
  
  


Is there a path towards fixing or appropriate operation for implementing a backward operation in lieu of using register_backward_hook?