提交 c34bdacb authored 作者: Jeremiah Lowin's avatar Jeremiah Lowin

update docstring

上级 1d17699f
...@@ -6870,11 +6870,7 @@ class Dot(Op): ...@@ -6870,11 +6870,7 @@ class Dot(Op):
""" """
Computes the dot product of two variables. For two matrices, this is Computes the dot product of two variables. For two matrices, this is
equivalent to matrix multiplication. For two vectors, this is the inner equivalent to matrix multiplication. For two vectors, this is the inner
product. When one variable is a scalar, it is like elementwise product.
multiplication. For N dimensions, it is a sum product over the last axis
of the first array and the second-to-last axis of the second array:
dot(a, b)[i,j,k,m] = sum(a[i,j,:] * b[k,:,m])
:note: matrix-matrix products are sometimes optimized to Dot22 ops :note: matrix-matrix products are sometimes optimized to Dot22 ops
(see tensor.blas) (see tensor.blas)
......
Markdown 格式
0%
您添加了 0 到此讨论。请谨慎行事。
请先完成此评论的编辑!
注册 或者 后发表评论