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

19 lines
613 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.matmul
=====================
.. py:function:: mindspore.ops.matmul(input, other)
计算两个输入的矩阵乘积。
.. note::
- `input``other` 的数据类型必须一致不支持Scalar两者须支持广播。
- Ascend平台 `input``other` 的秩必须在 1 到 6 之间。
- 执行反向时,`input``other` 在即时编译模式动态shape场景下不支持空tensor。
参数:
- **input** (Tensor) - 第一个输入tensor。
- **other** (Tensor) - 第二个输入tensor。
返回:
Tensor或Scalar