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

19 lines
549 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.gcd
=================
.. py:function:: mindspore.ops.gcd(input, other)
逐元素计算两个输入tensor的最大公约数。
支持广播、类型提升。数据类型支持int16使用Ascend后端时支持graph mode只在jit level为O0时支持、int32、int64之一。
.. warning::
这是一个实验性API后续可能修改或删除。
参数:
- **input** (Tensor) - 第一个输入tensor。
- **other** (Tensor) - 第二个输入tensor。
返回:
Tensor