Skip to content

Commit cdae579

Browse files
GabrielBianconisoumith
authored andcommitted
Fix typos in "Extending PyTorch" (pytorch#2558)
1 parent 440f1ab commit cdae579

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

docs/source/notes/extending.rst

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ additional comments::
7979
Now, to make it easier to use these custom ops, we recommend aliasing their
8080
``apply`` method::
8181

82-
linear = Linear.aply
82+
linear = Linear.apply
8383

8484
Here, we give an additional example of a function that is parametrized by
8585
non-Variable arguments::
@@ -88,7 +88,7 @@ non-Variable arguments::
8888
@staticmethod
8989
def forward(ctx, tensor, constant):
9090
# ctx is a context object that can be used to stash information
91-
for backward computation
91+
# for backward computation
9292
ctx.constant = constant
9393
return tensor * constant
9494

0 commit comments

Comments
 (0)