From fdeb2d23ddd36cfaa48fc2f39f904c001f4a2284 Mon Sep 17 00:00:00 2001 From: Adam Salvail Date: Tue, 25 Jul 2017 23:34:56 -0400 Subject: [PATCH] Minor corrections to tensordot documentation (#11764) Changed some math indices formating and the format of the `axes` argument for Example 3. --- tensorflow/python/ops/math_ops.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tensorflow/python/ops/math_ops.py b/tensorflow/python/ops/math_ops.py index 8ebffd0bbb6..3e91ec06841 100644 --- a/tensorflow/python/ops/math_ops.py +++ b/tensorflow/python/ops/math_ops.py @@ -2338,8 +2338,8 @@ def tensordot(a, b, axes, name=None): Example 2: When `a` and `b` are matrices (order 2), the case `axes = [[1], [0]]` is equivalent to matrix multiplication. - Example 3: Suppose that \\(a_ijk\\) and \\(b_lmn\\) represent two - tensors of order 3. Then, `contract(a, b, [0], [2])` is the order 4 tensor + Example 3: Suppose that \\(a_{ijk}\\) and \\(b_{lmn}\\) represent two + tensors of order 3. Then, `contract(a, b, [[0], [2]])` is the order 4 tensor \\(c_{jklm}\\) whose entry corresponding to the indices \\((j,k,l,m)\\) is given by: