19 lines
613 B
ReStructuredText
19 lines
613 B
ReStructuredText
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
|