aboutsummaryrefslogtreecommitdiffhomepage
diff options
context:
space:
mode:
authorGravatar Peter Hawkins <phawkins@google.com>2017-03-27 09:53:23 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-03-27 11:15:44 -0700
commitc0d4a6929a181cd3501dc9502e2c020d0515a053 (patch)
treeeada665771ff3001e7cde974df01b7c110ef0488
parentd58fe97fdefcd968c28f4cff916ba6a26e234d4f (diff)
Fix op description for BatchMatMul to state that it works for >= 2D, not > 2D.
Change: 151341608
-rw-r--r--tensorflow/core/ops/math_ops.cc8
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/core/ops/math_ops.cc b/tensorflow/core/ops/math_ops.cc
index bb80acc89f..b69ce13775 100644
--- a/tensorflow/core/ops/math_ops.cc
+++ b/tensorflow/core/ops/math_ops.cc
@@ -99,10 +99,10 @@ individual slices can optionally be adjointed (to adjoint a matrix
means to transpose and conjugate it) before multiplication by setting
the `adj_x` or `adj_y` flag to `True`, which are by default `False`.
-The input tensors `x` and `y` are 3-D or higher with shape `[..., r_x, c_x]`
+The input tensors `x` and `y` are 2-D or higher with shape `[..., r_x, c_x]`
and `[..., r_y, c_y]`.
-The output tensor is 3-D or higher with shape `[..., r_o, c_o]`, where:
+The output tensor is 2-D or higher with shape `[..., r_o, c_o]`, where:
r_o = c_x if adj_x else r_x
c_o = r_y if adj_y else c_y
@@ -111,8 +111,8 @@ It is computed as:
output[..., :, :] = matrix(x[..., :, :]) * matrix(y[..., :, :])
-x: 3-D or higher with shape `[..., r_x, c_x]`.
-y: 3-D or higher with shape `[..., r_y, c_y]`.
+x: 2-D or higher with shape `[..., r_x, c_x]`.
+y: 2-D or higher with shape `[..., r_y, c_y]`.
output: 3-D or higher with shape `[..., r_o, c_o]`
adj_x: If `True`, adjoint the slices of `x`. Defaults to `False`.
adj_y: If `True`, adjoint the slices of `y`. Defaults to `False`.