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

20 lines
600 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.mm
=================
.. py:function:: mindspore.ops.mm(input, mat2)
计算两个输入的矩阵乘积。
`input` 的shape为 :math:`(n \times m)` `mat2` 的shape为 :math:`(m \times p)` `out` 的shape为 :math:`(n \times p)`
.. note::
- 此函数不能支持广播。若需要可广播的方法,请参考 :func:`mindspore.ops.matmul`
- Ascend平台不支持float64类型。
参数:
- **input** (Tensor) - 第一个输入tensor。
- **mat2** (Tensor) - 第二个输入tensor。
返回:
Tensor