# tensorplay.functional.dot Source: https://www.tensorplay.cn/docs/generated/tensorplay.functional.dot.html ```python tensorplay.functional.dot(input, tensor, *, out=None) → Tensor ``` Computes the dot product of two 1D tensors. > **Note** > > Unlike NumPy’s dot, tensorplay.dot intentionally only supports computing the dot product of two 1D tensors with the same number of elements. Parameters: - input ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – first tensor in the dot product, must be 1D. - tensor ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor)) – second tensor in the dot product, must be 1D. Keyword Arguments: out ([Tensor](/docs/generated/tensorplay.Tensor.html#tensorplay.Tensor), optional) – the output tensor. Example: ``` >>> tensorplay.dot(tensorplay.tensor([2, 3]), tensorplay.tensor([2, 1])) tensor(7) >>> t1, t2 = tensorplay.tensor([0, 1]), tensorplay.tensor([2, 3]) >>> tensorplay.dot(t1, t2) tensor(3) ```