mindspore.mint.dot
====================

.. image:: https://mindspore-website.obs.cn-north-4.myhuaweicloud.com/website-images/master/resource/_static/logo_source.svg
    :target: https://gitee.com/mindspore/mindspore/blob/master/docs/api/api_python/mint/mindspore.mint.func_dot.rst
    :alt: 查看源文件


.. py:function:: mindspore.mint.dot(input, other)

    计算两个1DTensor的点积。

    .. warning::
        这是一个实验性API,后续可能修改或删除。

    参数:
        - **input** (Tensor) - 点积的第一个输入, 须为1D。
        - **other** (Tensor) - 点积的第二个输入,须为1D。

    返回:
        Tensor,shape是[], 类型与input一致。

    异常:
        - **TypeError** - `input` 和 `other` 的数据类型不是tensor。
        - **TypeError** - `input` 或 `other` 的数据类型不是float16, float32, 或bfloat16。
        - **RuntimeError** - `input` 和 `other` 的数据类型不一致。
        - **RuntimeError** - `input` 和 `other` 的shape不一致。
        - **RuntimeError** - `input` 或 `other` 不是1D。