File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -227,9 +227,9 @@ for t in range(500):
227227## PyTorch: Defining new autograd functions  
228228Under the hood, each primitive autograd operator is really two functions that
229229operate on Tensors. The ** forward**  function computes output Tensors from input
230- Tensors. The ** backward**  function receives the gradient of the output Tensors 
231- with respect to some scalar value , and computes the gradient of the input Tensors 
232- with respect to  that same scalar value.
230+ Tensors. The ** backward**  function receives the gradient of some scalar value 
231+ with respect to the output Tensors , and computes the gradient
232+ of  that same scalar value with respect to the input Tensors .
233233
234234In PyTorch we can easily define our own autograd operator by defining a subclass
235235of ` torch.autograd.Function `  and implementing the ` forward `  and ` backward `  functions.
    
 
   
 
     
   
   
          
     
  
    
     
 
    
      
     
 
     
    You can’t perform that action at this time.
  
 
    
  
     
    
      
        
     
 
       
      
     
   
 
    
    
  
 
  
 
     
    
0 commit comments