20 lines
606 B
ReStructuredText
20 lines
606 B
ReStructuredText
mindspore.ops.addcdiv
|
||
======================
|
||
|
||
.. py:function:: mindspore.ops.addcdiv(input, tensor1, tensor2, value=1)
|
||
|
||
`tensor2` 对 `tensor1` 逐元素相除,将结果乘以标量值 `value` ,并加到 `input` 。
|
||
|
||
.. math::
|
||
y[i] = input[i] + value[i] * (tensor1[i] / tensor2[i])
|
||
|
||
参数:
|
||
- **input** (Tensor) - 输入tensor。
|
||
- **tensor1** (Tensor) - 被除数(分子)。
|
||
- **tensor2** (Tensor) - 除数(分母)。
|
||
- **value** (Union[Tensor, number]) - (tensor1 / tensor2)的乘数。默认 ``1`` 。
|
||
|
||
返回:
|
||
Tensor
|
||
|