We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 440f1ab commit cdae579Copy full SHA for cdae579
docs/source/notes/extending.rst
@@ -79,7 +79,7 @@ additional comments::
79
Now, to make it easier to use these custom ops, we recommend aliasing their
80
``apply`` method::
81
82
- linear = Linear.aply
+ linear = Linear.apply
83
84
Here, we give an additional example of a function that is parametrized by
85
non-Variable arguments::
@@ -88,7 +88,7 @@ non-Variable arguments::
88
@staticmethod
89
def forward(ctx, tensor, constant):
90
# ctx is a context object that can be used to stash information
91
- for backward computation
+ # for backward computation
92
ctx.constant = constant
93
return tensor * constant
94
0 commit comments