mindspore/docs/api/api_python/numpy/mindspore.numpy.divide.rst

20 lines
680 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.numpy.divide
======================
.. py:function:: mindspore.numpy.divide(x1, x2, dtype=None)
返回输入的真除法,逐元素计算。
该函数与Python默认的“向下取整除”不同它返回真除法的结果。
.. note::
不支持numpy参数 `out``where``casting``order``subok``signature``extobj`
参数:
- **x1** (Tensor) - 被除数。
- **x2** (Tensor) - 除数。
- **dtype** (mindspore.dtype, 可选) - 默认值: `None`。 覆盖输出Tensor的dtype。
返回:
Tensor或Tensor如果 `x1``x2` 都是Tensor返回Tensor。