aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/ops/gradients_test.py
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2016-12-14 23:45:28 -0800
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2016-12-15 00:04:59 -0800
commitc5dc750ba9fab7e7f1f05ee0e0cdb04ae96e0e32 (patch)
tree937edf17553f8d1f24abaf683dc83b10e7e730f4 /tensorflow/python/ops/gradients_test.py
parent3bb102941e638617894facca6859b444154f8c2b (diff)
Switch array_ops.pack/unpack to array_ops.stack/unstack. Also switch a few remaining references to tf.pack/unpack to tf.stack/unstack.
Change: 142108785
Diffstat (limited to 'tensorflow/python/ops/gradients_test.py')
-rw-r--r--tensorflow/python/ops/gradients_test.py14
1 files changed, 7 insertions, 7 deletions
diff --git a/tensorflow/python/ops/gradients_test.py b/tensorflow/python/ops/gradients_test.py
index 8b4fbeb7a9..91b147a3c1 100644
--- a/tensorflow/python/ops/gradients_test.py
+++ b/tensorflow/python/ops/gradients_test.py
@@ -86,7 +86,7 @@ class GradientsTest(test_util.TensorFlowTestCase):
with ops.Graph().as_default() as g:
t1 = constant(1.0)
t2 = constant(2.0)
- t3 = array_ops.pack([t1, t2])
+ t3 = array_ops.stack([t1, t2])
# Full graph
self._assertOpListEqual([t3.op, t2.op, t1.op],
_OpsBetween(g, [t3.op], [t1.op, t2.op]))
@@ -98,10 +98,10 @@ class GradientsTest(test_util.TensorFlowTestCase):
with ops.Graph().as_default() as g:
t1 = constant(1.0)
t2 = constant(2.0)
- _ = array_ops.pack([t1, t2])
+ _ = array_ops.stack([t1, t2])
t4 = constant(1.0)
t5 = constant(2.0)
- t6 = array_ops.pack([t4, t5])
+ t6 = array_ops.stack([t4, t5])
# Elements of to_ops are always listed.
self._assertOpListEqual([t6.op], _OpsBetween(g, [t6.op], [t1.op]))
@@ -109,7 +109,7 @@ class GradientsTest(test_util.TensorFlowTestCase):
with ops.Graph().as_default() as g:
t1 = constant(1.0)
t2 = constant(2.0)
- t3 = array_ops.pack([t1, t2])
+ t3 = array_ops.stack([t1, t2])
t4 = constant([1.0])
t5 = array_ops.concat_v2([t4, t3], 0)
t6 = constant([2.0])
@@ -121,7 +121,7 @@ class GradientsTest(test_util.TensorFlowTestCase):
with ops.Graph().as_default() as g:
t1 = constant(1.0)
t2 = constant(2.0)
- t3 = array_ops.pack([t1, t2])
+ t3 = array_ops.stack([t1, t2])
t4 = array_ops.concat_v2([t3, t3, t3], 0)
t5 = constant([1.0])
t6 = array_ops.concat_v2([t4, t5], 0)
@@ -491,8 +491,8 @@ class IndexedSlicesToTensorTest(test_util.TensorFlowTestCase):
numpy_list.append(np_val)
dense_list.append(c)
sparse_list.append(c_sparse)
- packed_dense = array_ops.pack(dense_list)
- packed_sparse = array_ops.pack(sparse_list)
+ packed_dense = array_ops.stack(dense_list)
+ packed_sparse = array_ops.stack(sparse_list)
self.assertAllClose(packed_dense.eval(), packed_sparse.eval())
def testInt64Indices(self):