Skip to content

Commit cc56d97

Browse files
author
sccbhxc
committed
fix a comment in LinearFunction.backward(...)
1 parent 1bbb27c commit cc56d97

File tree

4 files changed

+4
-4
lines changed

4 files changed

+4
-4
lines changed

docs/0.1.12/_sources/notes/extending.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ additional comments::
5656
# This function has only a single output, so it gets only one gradient
5757
def backward(self, grad_output):
5858
# This is a pattern that is very convenient - at the top of backward
59-
# unpack saved_tensors and initialize all gradients w.r.t. inputs to
59+
# unpack saved_variables and initialize all gradients w.r.t. inputs to
6060
# None. Thanks to the fact that additional trailing Nones are
6161
# ignored, the return statement is simple even when the function has
6262
# optional inputs.

docs/0.3.0/_sources/notes/extending.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ additional comments::
5656
@staticmethod
5757
def backward(ctx, grad_output):
5858
# This is a pattern that is very convenient - at the top of backward
59-
# unpack saved_tensors and initialize all gradients w.r.t. inputs to
59+
# unpack saved_variables and initialize all gradients w.r.t. inputs to
6060
# None. Thanks to the fact that additional trailing Nones are
6161
# ignored, the return statement is simple even when the function has
6262
# optional inputs.

docs/master/_sources/notes/extending.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ additional comments::
5656
@staticmethod
5757
def backward(ctx, grad_output):
5858
# This is a pattern that is very convenient - at the top of backward
59-
# unpack saved_tensors and initialize all gradients w.r.t. inputs to
59+
# unpack saved_variables and initialize all gradients w.r.t. inputs to
6060
# None. Thanks to the fact that additional trailing Nones are
6161
# ignored, the return statement is simple even when the function has
6262
# optional inputs.

docs/stable/_sources/notes/extending.rst.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ additional comments::
5656
@staticmethod
5757
def backward(ctx, grad_output):
5858
# This is a pattern that is very convenient - at the top of backward
59-
# unpack saved_tensors and initialize all gradients w.r.t. inputs to
59+
# unpack saved_variables and initialize all gradients w.r.t. inputs to
6060
# None. Thanks to the fact that additional trailing Nones are
6161
# ignored, the return statement is simple even when the function has
6262
# optional inputs.

0 commit comments

Comments
 (0)