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

25 lines
754 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.addmm
====================
.. py:function:: mindspore.ops.addmm(input, mat1, mat2, *, beta=1, alpha=1)
`mat1``mat2` 矩阵乘,再将结果与 `input` 相加。
.. note::
-`beta` 为0那么 `input` 将会被忽略。
.. math::
output = \beta input + \alpha (mat1 @ mat2)
参数:
- **input** (Tensor) - 输入tensor。
- **mat1** (Tensor) - 第一个矩阵。
- **mat2** (Tensor) - 第二个矩阵。
关键字参数:
- **beta** (Union[int, float],可选) - `input` 的尺度因子。默认 ``1``
- **alpha** (Union[int, float],可选) - `mat1` @ `mat2` )的尺度因子。默认 ``1``
返回:
Tensor