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

16 lines
387 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.mv
=================
.. py:function:: mindspore.ops.mv(mat, vec)
实现矩阵 `mat` 和向量 `vec` 相乘。
如果 `mat` 的shape为 :math:`(N, M)` `vec` 的shape为 :math:`M` ,则输出为 :math:`N` 的一维tensor。
参数:
- **mat** (Tensor) - 输入矩阵。
- **vec** (Tensor) - 输入向量。
返回:
Tensor