To clarify further, this feature request actually breaks what I want to do:

  
      github.com/pytorch/pytorch
  
  
    
  
	  
  

  
    
      Check that outputs and grad_outputs have same shape in torch.autograd.grad() 
    

    
      
        opened 
        
          
        
        Mar 11, 2019
      
      

        
          closed 
        
          
        
        Aug 30, 2019
      
        

      
        
          
          zplizzi
        
      
    
  



  🚀 Feature
If I'm understanding things right, for every item in outputs, the corresponding item in grad_outputs should have the same shape...



    module: autograd
    module: bootcamp
    module: error checking
    triaged


  
  
    
    
  
  


Although, I believe it is good to have these size checks for normal situations. I would be glad if there is some ‘hack’ to by-pass the size consistency checks. Thanks