mindspore/docs/api/api_python/mint/mindspore.mint.func_dot.rst

20 lines
750 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.mint.dot
====================
.. py:function:: mindspore.mint.dot(input, other)
计算两个1DTensor的点积。
参数:
- **input** (Tensor) - 点积的第一个输入, 须为1D。
- **other** (Tensor) - 点积的第二个输入须为1D。
返回:
Tensorshape是[], 类型与input一致。
异常:
- **TypeError** - `input``other` 的数据类型不是tensor。
- **TypeError** - `input``other` 的数据类型不是float16, float32, 或bfloat16。
- **RuntimeError** - `input``other` 的数据类型不一致。
- **RuntimeError** - `input``other` 的shape不一致。
- **RuntimeError** - `input``other` 不是1D。