!49580 [bugfix] Fix Gaussian NLL Loss document

Merge pull request !49580 from shaojunsong/code_docs_I6ICP9
This commit is contained in:
i-robot 2023-03-01 06:21:00 +00:00 committed by Gitee
commit a4d50ec793
No known key found for this signature in database
GPG Key ID: 173E9B9CA92EEF8F
4 changed files with 4 additions and 4 deletions

View File

@ -32,5 +32,5 @@ mindspore.nn.GaussianNLLLoss
- **TypeError** - `labels` 不是Tensor。
- **TypeError** - `full` 不是bool。
- **TypeError** - `eps` 不是float。
- **ValueError** - `eps` 不是在[0, inf)区间的float。
- **ValueError** - `eps` 不是在(0, inf)区间的float。
- **ValueError** - `reduction` 不是"none"、"mean"或者"sum"。

View File

@ -31,7 +31,7 @@ mindspore.ops.gaussian_nll_loss
- **TypeError** - `var` 不是Tensor。
- **TypeError** - `full` 不是bool。
- **TypeError** - `eps` 不是float。
- **ValueError** - `eps` 不是在[0, inf)区间的float。
- **ValueError** - `eps` 不是在(0, inf)区间的float。
- **ValueError** - `reduction` 不是 ``'none'````'mean'`` 或者 ``'sum'``
参考:

View File

@ -2429,7 +2429,7 @@ class GaussianNLLLoss(LossBase):
TypeError: If `labels` is not a Tensor.
TypeError: If `full` is not a bool.
TypeError: If `eps` is not a float.
ValueError: If `eps` is not a float within [0, inf).
ValueError: If `eps` is not a float within (0, inf).
ValueError: If `reduction` is not one of 'none', 'mean', 'sum'.
Supported Platforms:

View File

@ -4066,7 +4066,7 @@ def gaussian_nll_loss(x, target, var, full=False, eps=1e-6, reduction='mean'):
TypeError: If `var` is not a Tensor.
TypeError: If `full` is not a bool.
TypeError: If `eps` is not a float.
ValueError: If `eps` is not a float within [0, inf).
ValueError: If `eps` is not a float within (0, inf).
ValueError: If `reduction` is not one of ``"none"`` , ``"mean"`` , ``"sum"`` .
Supported Platforms: