From 4656e09431c7cf06f0fd20d466c3883a44f2ec30 Mon Sep 17 00:00:00 2001 From: Jane Xu Date: Fri, 25 Aug 2023 17:10:27 +0000 Subject: [PATCH] Fixes #107737 SGD doc blank line (#107738) docs preview brings joy image Pull Request resolved: https://github.com/pytorch/pytorch/pull/107738 Approved by: https://github.com/mikaylagawarecki --- torch/optim/sgd.py | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/torch/optim/sgd.py b/torch/optim/sgd.py index 326186dc5d1f1..e710fa0955de6 100644 --- a/torch/optim/sgd.py +++ b/torch/optim/sgd.py @@ -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}