2022-03-02 15:53:00 +08:00
|
|
|
|
mindspore.ops.dot
|
|
|
|
|
|
==================
|
|
|
|
|
|
|
2023-02-21 20:23:07 +08:00
|
|
|
|
.. py:function:: mindspore.ops.dot(input, other)
|
2022-03-02 15:53:00 +08:00
|
|
|
|
|
|
|
|
|
|
两个Tensor之间的点积。
|
|
|
|
|
|
|
2022-07-25 15:09:45 +08:00
|
|
|
|
参数:
|
2023-02-21 20:23:07 +08:00
|
|
|
|
- **input** (Tensor) - 第一个输入的Tensor,数据类型为float16或float32,秩必须大于或等于2。
|
|
|
|
|
|
- **other** (Tensor) - 第二个输入的Tensor,数据类型为float16或float32,秩必须大于或等于2。
|
2022-03-02 15:53:00 +08:00
|
|
|
|
|
2022-07-25 15:09:45 +08:00
|
|
|
|
返回:
|
2023-02-21 20:23:07 +08:00
|
|
|
|
Tensor, `input` 和 `other` 的点积。
|
2022-03-02 15:53:00 +08:00
|
|
|
|
|
2022-07-25 15:09:45 +08:00
|
|
|
|
异常:
|
2023-02-21 20:23:07 +08:00
|
|
|
|
- **TypeError** - `input` 和 `other` 的数据类型不相同。
|
|
|
|
|
|
- **TypeError** - `input` 或 `other` 的数据类型不是float16或float32。
|
|
|
|
|
|
- **ValueError** - `input` 或 `other` 的秩小于2。
|