Skip to content

Commit

Permalink
Fix typos in "Extending PyTorch" (pytorch#2558)
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBianconi authored and soumith committed Aug 29, 2017
1 parent 440f1ab commit cdae579
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions docs/source/notes/extending.rst
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ additional comments::
Now, to make it easier to use these custom ops, we recommend aliasing their
``apply`` method::

linear = Linear.aply
linear = Linear.apply

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

Expand Down

0 comments on commit cdae579

Please sign in to comment.