mindspore.ops.addmm
- mindspore.ops.addmm(x, mat1, mat2, *, beta=1, alpha=1)[source]
Multiplies matrix mat1 and matrix mat2. The matrix x is added to the final result.
- Parameters
- Keyword Arguments
\[output = \beta x + \alpha (mat1 @ mat2)\]- Returns
Tensor, has the same dtype as x.
- Raises
ValueError – If mat1, mat2 cannot apply matrix multiplication.
- Supported Platforms:
Ascend
GPU
CPU