From f8816a2873dc159eea2c2ee232790a342e4f699e Mon Sep 17 00:00:00 2001 From: inikishev <76593873+inikishev@users.noreply.github.com> Date: Wed, 25 Dec 2024 21:18:28 +0300 Subject: [PATCH] Update README.md --- README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/README.md b/README.md index 870bf54..158b3a8 100644 --- a/README.md +++ b/README.md @@ -21,7 +21,7 @@ def closure(backward = True): loss = loss_fn(preds, targets) # if you can't call loss.backward() and use gradient-free methods, they always call closure with backward=False. - # so you can remove the part below but keep the unused backward argument. + # so you can remove the part below, but keep the unused backward argument. if backward: optimizer.zero_grad() loss.backward()