Skip to content

Commit

Permalink
Clarify what matmul does in docs.
Browse files Browse the repository at this point in the history
The new documentation makes it sound like matmul does element-wise
multiplication. This change makes it clear that matrix multiplication will be
performed.
Change: 142307683
  • Loading branch information
tensorflower-gardener committed Dec 17, 2016
1 parent c6e38f5 commit 924097d
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tensorflow/python/ops/math_ops.py
Original file line number Diff line number Diff line change
Expand Up @@ -1736,7 +1736,10 @@ def matmul(a,
the product of the corresponding matrices in `a` and `b, e.g. if all
transpose or adjoint attributes are `False`:
output[..., :, :] = a[..., :, :] * b[..., :, :] ,
`output`[..., i, j] = sum_k (`a`[..., i, k] * `b`[..., k, j]),
for all indices i, j.
Note: This is matrix product, not element-wise product.
Raises:
Expand Down

0 comments on commit 924097d

Please sign in to comment.