forked from mindspore-Ecosystem/mindspore
fix_docs
This commit is contained in:
parent
3b513daac7
commit
3fc8085076
|
@ -29,5 +29,5 @@ mindspore.nn.CTCLoss
|
||||||
- **ValueError** - `reduction` 不为"none","mean"或"sum"。
|
- **ValueError** - `reduction` 不为"none","mean"或"sum"。
|
||||||
- **ValueError** - `targets` , `input_lengths` 或 `target_lengths` 的数据类型是不同的。
|
- **ValueError** - `targets` , `input_lengths` 或 `target_lengths` 的数据类型是不同的。
|
||||||
- **ValueError** - `blank` 值不介于0到C之间。C是 `log_probs` 的分类数。
|
- **ValueError** - `blank` 值不介于0到C之间。C是 `log_probs` 的分类数。
|
||||||
- **ValueError** - `input_lengths` 的值大于T。T是 `log_probs` 的长度。
|
- **RuntimeError** - `input_lengths` 的值大于T。T是 `log_probs` 的长度。
|
||||||
- **ValueError** - `target_lengths[i]` 的值不介于0到 `input_length[i]` 之间。
|
- **RuntimeError** - `target_lengths[i]` 的值不介于0到 `input_length[i]` 之间。
|
||||||
|
|
|
@ -2657,14 +2657,14 @@ class Tensor(Tensor_):
|
||||||
|
|
||||||
def digamma(self):
|
def digamma(self):
|
||||||
r"""
|
r"""
|
||||||
Refer to :func:`mindspore.ops.digamma`.
|
For details, please refer to :func:`mindspore.ops.digamma`.
|
||||||
"""
|
"""
|
||||||
self._init_check()
|
self._init_check()
|
||||||
return tensor_operator_registry.get('digamma')(self)
|
return tensor_operator_registry.get('digamma')(self)
|
||||||
|
|
||||||
def lgamma(self):
|
def lgamma(self):
|
||||||
r"""
|
r"""
|
||||||
Refer to :func:`mindspore.ops.lgamma`.
|
For details, please refer to :func:`mindspore.ops.lgamma`.
|
||||||
"""
|
"""
|
||||||
self._init_check()
|
self._init_check()
|
||||||
return tensor_operator_registry.get('lgamma')(self)
|
return tensor_operator_registry.get('lgamma')(self)
|
||||||
|
|
|
@ -2430,8 +2430,8 @@ class CTCLoss(LossBase):
|
||||||
ValueError: If `reduction` is not "none", "mean" or "sum".
|
ValueError: If `reduction` is not "none", "mean" or "sum".
|
||||||
ValueError: If the types of `targets`, `input_lengths` or `target_lengths` are different.
|
ValueError: If the types of `targets`, `input_lengths` or `target_lengths` are different.
|
||||||
ValueError: If the value of `blank` is not in range [0, C). C is number of classes of `log_probs` .
|
ValueError: If the value of `blank` is not in range [0, C). C is number of classes of `log_probs` .
|
||||||
ValueError: If any value of `input_lengths` is larger than T. T is length of `log_probs` .
|
RuntimeError: If any value of `input_lengths` is larger than T. T is length of `log_probs` .
|
||||||
ValueError: If any target_lengths[i] is not in range [0, input_length[i]].
|
RuntimeError: If any target_lengths[i] is not in range [0, input_length[i]].
|
||||||
|
|
||||||
Supported Platforms:
|
Supported Platforms:
|
||||||
``Ascend`` ``GPU`` ``CPU``
|
``Ascend`` ``GPU`` ``CPU``
|
||||||
|
|
|
@ -2967,8 +2967,8 @@ def l1_loss(x, target, reduction='mean'):
|
||||||
\end{cases}
|
\end{cases}
|
||||||
|
|
||||||
Args:
|
Args:
|
||||||
x (Tensor) - Predicted value, Tensor of any dimension.
|
x (Tensor): Predicted value, Tensor of any dimension.
|
||||||
target (Tensor) - Target value, same shape as the `x` .
|
target (Tensor): Target value, same shape as the `x` .
|
||||||
reduction (str, optional): Type of reduction to be applied to loss. The optional value is "mean", "sum" or
|
reduction (str, optional): Type of reduction to be applied to loss. The optional value is "mean", "sum" or
|
||||||
"none". Default: "mean".
|
"none". Default: "mean".
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue