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

19 lines
659 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.Lcm
=================
.. py:class:: mindspore.ops.Lcm
逐个元素计算输入Tensor的最小公倍数。
两个输入的shape应该是可广播的它们的数据类型应该是其中之一int32、int64。
输入:
- **x1** (Tensor) - 第一个输入Tensor。
- **x2** (Tensor) - 第二个输入Tensor。
输出:
Tensorshape与广播后的shape相同数据类型为两个输入中具有更高的精度的那一个。
异常:
- **TypeError** - 如果 `x1``x2` 的数据类型不是int32或int64。
- **ValueError** - 如果两个输入的shape无法广播。