mindspore2022/docs/api/api_python/ops/mindspore.ops.func_dot.rst

21 lines
643 B
ReStructuredText
Raw 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.dot
==================
.. py:function:: mindspore.ops.dot(x1, x2)
两个Tensor之间的点积。
**参数:**
- **x1** (Tensor) - 第一个输入的Tensor数据类型为float16或float32秩必须大于或等于2。
- **x2** (Tensor) - 第二个输入的Tensor数据类型为float16或float32秩必须大于或等于2。
**输出:**
Tensor `x1``x2` 的点积。
**异常:**
- **TypeError** - `x1``x2` 的数据类型不相同。
- **TypeError** - `x1``x2` 的数据类型不是float16或float32。
- **ValueError** - `x1``x2` 的秩小于2。