From 226a37655863907ce41a20af82567753a6a3bcf5 Mon Sep 17 00:00:00 2001 From: Eugene Brevdo Date: Thu, 1 Dec 2016 21:21:35 -0800 Subject: Part 2a of renaming SparseTensor.shape -> SparseTensor.dense_shape Change: 140813882 --- tensorflow/contrib/framework/python/ops/prettyprint_ops_test.py | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/tensorflow/contrib/framework/python/ops/prettyprint_ops_test.py b/tensorflow/contrib/framework/python/ops/prettyprint_ops_test.py index bcea8692a6..5db9cef58b 100644 --- a/tensorflow/contrib/framework/python/ops/prettyprint_ops_test.py +++ b/tensorflow/contrib/framework/python/ops/prettyprint_ops_test.py @@ -31,8 +31,10 @@ class PrettyPrintOpsTest(tf.test.TestCase): self.assertEqual(a.eval(), tf.constant([1]).eval()) def testPrintSparseTensorPassthrough(self): - a = tf.SparseTensor(indices=[[0, 0], [1, 2]], values=[1, 2], shape=[3, 4]) - b = tf.SparseTensor(indices=[[0, 0], [1, 2]], values=[1, 2], shape=[3, 4]) + a = tf.SparseTensor( + indices=[[0, 0], [1, 2]], values=[1, 2], dense_shape=[3, 4]) + b = tf.SparseTensor( + indices=[[0, 0], [1, 2]], values=[1, 2], dense_shape=[3, 4]) a = tf.contrib.framework.print_op(a) with self.test_session(): self.assertAllEqual(tf.sparse_tensor_to_dense(a).eval(), -- cgit v1.2.3