aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/kernel_tests/sparse_matmul_op_test.py
diff options
context:
space:
mode:
authorGravatar Vijay Vasudevan <vrv@google.com>2015-11-09 10:11:07 -0800
committerGravatar Vijay Vasudevan <vrv@google.com>2015-11-09 10:11:07 -0800
commit61d3a958d6d83cb6037490d933b47621cc4009cc (patch)
tree20630337ec30cbc6d974730d3bfdd22508f6e257 /tensorflow/python/kernel_tests/sparse_matmul_op_test.py
parent9f64983a8458700ba1aec613a755e8264b1608e0 (diff)
TensorFlow: Initial steps towards python3 support, some documentation
bug fixes -- reindents to 2 for some of the files to match our internal requirements. Thanks to Martin Andrews for the basic_usage.md suggested fix via Gerrit. Base CL: 107394029
Diffstat (limited to 'tensorflow/python/kernel_tests/sparse_matmul_op_test.py')
-rw-r--r--tensorflow/python/kernel_tests/sparse_matmul_op_test.py3
1 files changed, 2 insertions, 1 deletions
diff --git a/tensorflow/python/kernel_tests/sparse_matmul_op_test.py b/tensorflow/python/kernel_tests/sparse_matmul_op_test.py
index d87d15cae9..4529be21fc 100644
--- a/tensorflow/python/kernel_tests/sparse_matmul_op_test.py
+++ b/tensorflow/python/kernel_tests/sparse_matmul_op_test.py
@@ -1,4 +1,5 @@
"""Tests for tensorflow.ops.tf.matmul."""
+from __future__ import print_function
import tensorflow.python.platform
@@ -67,7 +68,7 @@ class MatMulGradientTest(tf.test.TestCase):
b_is_sparse=sp_b)
err = (gc.ComputeGradientError(a, [2, 3] if tr_a else [3, 2], m, [3, 4]) +
gc.ComputeGradientError(b, [4, 2] if tr_b else [2, 4], m, [3, 4]))
- print "sparse_matmul gradient err = ", err
+ print("sparse_matmul gradient err = ", err)
self.assertLess(err, 1e-3)
def testGradientInput(self):