aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/labeled_tensor
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-11-29 11:00:18 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-11-29 11:07:48 -0800
commitd753ed4eda5d291e0d88f0b5babf7df4b691a066 (patch)
treee6e92bff00fac0377a1f7d61e3cdaf3d65dd0ca3 /tensorflow/contrib/labeled_tensor
parent5ba1570271e22e4ac71c2e358198d4845639c077 (diff)
Remove tf.batch_matmul Python interface.
Change: 140500123
Diffstat (limited to 'tensorflow/contrib/labeled_tensor')
-rw-r--r--tensorflow/contrib/labeled_tensor/python/ops/ops.py8
1 files changed, 4 insertions, 4 deletions
diff --git a/tensorflow/contrib/labeled_tensor/python/ops/ops.py b/tensorflow/contrib/labeled_tensor/python/ops/ops.py
index 590590bf7b..d846b013fe 100644
--- a/tensorflow/contrib/labeled_tensor/python/ops/ops.py
+++ b/tensorflow/contrib/labeled_tensor/python/ops/ops.py
@@ -727,10 +727,10 @@ def matmul(a, b, name=None):
b = core.convert_to_labeled_tensor(b)
if len(a.axes) > 2 or len(b.axes) > 2:
- # We could use tf.batch_matmul to make this work, but we would also need
- # to use tf.tile and/or tf.transpose. These are more expensive than doing
- # reshapes, so it's not clear if it's a good idea to do this
- # automatically.
+ # We could pass batched inputs to tf.matmul to make this work, but we
+ # would also need to use tf.tile and/or tf.transpose. These are more
+ # expensive than doing reshapes, so it's not clear if it's a good idea to
+ # do this automatically.
raise NotImplementedError(
'matmul currently requires inputs with rank 2 or less, but '
'inputs have ranks %r and %r' % (len(a.axes), len(b.axes)))