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

19 lines
452 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.outer
====================
.. py:function:: mindspore.ops.outer(input, vec2)
计算两个tensor的外积。
如果向量 `input` 长度为 :math:`n` `vec2` 长度为 :math:`m` 则输出矩阵shape为 :math:`(n, m)`
.. note::
该函数不支持广播。
参数:
- **input** (Tensor) - 一维输入tensor。
- **vec2** (Tensor) - 一维输入tensor。
返回:
Tensor