mindspore/docs/api/api_python/ops/mindspore.ops.func_addcdiv.rst

20 lines
606 B
ReStructuredText
Raw Permalink Blame History

This file contains ambiguous Unicode characters

This file contains Unicode characters that might be confused with other characters. If you think that this is intentional, you can safely ignore this warning. Use the Escape button to reveal them.

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