mirror of
https://github.com/zebrajr/pytorch.git
synced 2025-12-07 12:21:27 +01:00
[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:
parent
ebc66bfeea
commit
7f7966a888
|
|
@ -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:
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user