Skip to content

Commit

Permalink
Fixes pytorch#107737 SGD doc blank line (pytorch#107738)
Browse files Browse the repository at this point in the history
docs preview brings joy
<img width="774" alt="image" src="https://github.com/pytorch/pytorch/assets/31798555/1bfaae64-16f2-448a-8af2-36303d2845db">

Pull Request resolved: pytorch#107738
Approved by: https://github.com/mikaylagawarecki
  • Loading branch information
janeyx99 authored and pytorchmergebot committed Aug 25, 2023
1 parent 161ea46 commit 4656e09
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions torch/optim/sgd.py
Original file line number Diff line number Diff line change
Expand Up @@ -92,8 +92,7 @@ def step(self, closure=None):
return loss


SGD.__doc__ = r"""\
Implements stochastic gradient descent (optionally with momentum).
SGD.__doc__ = r"""Implements stochastic gradient descent (optionally with momentum).
.. math::
\begin{aligned}
Expand Down

0 comments on commit 4656e09

Please sign in to comment.