[Docs] Fix the syntax of documentation (#69958)

Summary:
Fixes the syntax of documentation in the file torch/nn/utils/clip_grad.py

Pull Request resolved: https://github.com/pytorch/pytorch/pull/69958

Reviewed By: mruberry

Differential Revision: D33160612

Pulled By: albanD

fbshipit-source-id: 2dc199fee345bb4c75632900bc6f73a1ab8192a6
This commit is contained in:
zhouzaida 2021-12-16 10:33:14 -08:00 committed by Facebook GitHub Bot
parent ebc66bfeea
commit 7f7966a888

View File

@ -21,7 +21,7 @@ def clip_grad_norm_(
norm_type (float or int): type of the used p-norm. Can be ``'inf'`` for
infinity norm.
error_if_nonfinite (bool): if True, an error is thrown if the total
norm of the gradients from :attr:``parameters`` is ``nan``,
norm of the gradients from :attr:`parameters` is ``nan``,
``inf``, or ``-inf``. Default: False (will switch to True in the future)
Returns: