From 924097dfbb21a37f75bfe452a69e95a26904f29d Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Fri, 16 Dec 2016 15:56:41 -0800 Subject: Clarify what matmul does in docs. 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 --- tensorflow/python/ops/math_ops.py | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/tensorflow/python/ops/math_ops.py b/tensorflow/python/ops/math_ops.py index f6f2044412..0f7727ae68 100644 --- a/tensorflow/python/ops/math_ops.py +++ b/tensorflow/python/ops/math_ops.py @@ -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: -- cgit v1.2.3