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

17 lines
696 B
ReStructuredText
Raw 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:function:: mindspore.ops.lcm(input, other)
逐元素计算两个输入Tensor的最小公倍数。两个输入Tensor的shape应该是可广播的并且它们的数据类型应该是int32和int64其中之一。
参数:
- **input** (Tensor) - 第一个输入tensor。
- **other** (Tensor) - 第二个输入tensor。
返回:
Tensor其shape与广播后的shape相同其数据类型为两个输入中精度较高的类型。
异常:
- **TypeError** - `input``other` 的数据类型不是 int32 或 int64。
- **ValueError** - `input``other` 的广播后的shape不相同。