Skip to content

Commit f9a0709

Browse files
Backward pass algo description correction
I think it should be this way. Correct me if I am wrong :P
1 parent 659a73c commit f9a0709

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -227,9 +227,9 @@ for t in range(500):
227227
## PyTorch: Defining new autograd functions
228228
Under the hood, each primitive autograd operator is really two functions that
229229
operate 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

234234
In PyTorch we can easily define our own autograd operator by defining a subclass
235235
of `torch.autograd.Function` and implementing the `forward` and `backward` functions.

0 commit comments

Comments
 (0)