mindspore.ops.outer ==================== .. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/ops/mindspore.ops.func_outer.rst :alt: 查看源文件 .. 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