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** - `targets` , `input_lengths` 或 `target_lengths` 的数据类型是不同的。
|
||||
- **ValueError** - `blank` 值不介于0到C之间。C是 `log_probs` 的分类数。
|
||||
- **ValueError** - `input_lengths` 的值大于T。T是 `log_probs` 的长度。
|
||||
- **ValueError** - `target_lengths[i]` 的值不介于0到 `input_length[i]` 之间。
|
||||
- **RuntimeError** - `input_lengths` 的值大于T。T是 `log_probs` 的长度。
|
||||
- **RuntimeError** - `target_lengths[i]` 的值不介于0到 `input_length[i]` 之间。
|
||||
|
|
|
@ -2657,14 +2657,14 @@ class Tensor(Tensor_):
|
|||
|
||||
def digamma(self):
|
||||
r"""
|
||||
Refer to :func:`mindspore.ops.digamma`.
|
||||
For details, please refer to :func:`mindspore.ops.digamma`.
|
||||
"""
|
||||
self._init_check()
|
||||
return tensor_operator_registry.get('digamma')(self)
|
||||
|
||||
def lgamma(self):
|
||||
r"""
|
||||
Refer to :func:`mindspore.ops.lgamma`.
|
||||
For details, please refer to :func:`mindspore.ops.lgamma`.
|
||||
"""
|
||||
self._init_check()
|
||||
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 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 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 value of `input_lengths` is larger than T. T is length of `log_probs` .
|
||||
RuntimeError: If any target_lengths[i] is not in range [0, input_length[i]].
|
||||
|
||||
Supported Platforms:
|
||||
``Ascend`` ``GPU`` ``CPU``
|
||||
|
|
|
@ -2967,8 +2967,8 @@ def l1_loss(x, target, reduction='mean'):
|
|||
\end{cases}
|
||||
|
||||
Args:
|
||||
x (Tensor) - Predicted value, Tensor of any dimension.
|
||||
target (Tensor) - Target value, same shape as the `x` .
|
||||
x (Tensor): Predicted value, Tensor of any dimension.
|
||||
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
|
||||
"none". Default: "mean".
|
||||
|
||||
|
|
Loading…
Reference in New Issue