mindspore.ops.lcm

View Source On Gitee
mindspore.ops.lcm(input, other)[source]

Computes least common multiplier of input tensors element-wise.

Support broadcast, support implicit type conversion and type promotion.

Parameters
  • input (Tensor) – The first input tensor.

  • other (Tensor) – The second input tensor.

Returns

Tensor

Supported Platforms:

Ascend GPU CPU

Examples

>>> import mindspore
>>> mindspore.ops.lcm(mindspore.tensor([7, 8, 9]), mindspore.tensor([14, 6, 12]))
Tensor(shape=[3], dtype=Int64, value= [14, 24, 36])