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

18 lines
563 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.cross
====================
.. py:function:: mindspore.ops.cross(input, other, dim=None)
按指定维度计算两个输入tensor的叉积。
.. note::
`input``other` 必须有相同的shape且指定的 `dim` 上size必须为3。 如果不指定 `dim` 则使用第一个size为3的维度。
参数:
- **input** (Tensor) - 第一个输入tensor。
- **other** (Tensor) - 第二个输入tensor。
- **dim** (int可选) - 指定维度。默认 ``None``
返回:
Tensor