diff options
author | A. Unique TensorFlower <gardener@tensorflow.org> | 2016-12-14 23:45:28 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2016-12-15 00:04:59 -0800 |
commit | c5dc750ba9fab7e7f1f05ee0e0cdb04ae96e0e32 (patch) | |
tree | 937edf17553f8d1f24abaf683dc83b10e7e730f4 /tensorflow/contrib/legacy_seq2seq | |
parent | 3bb102941e638617894facca6859b444154f8c2b (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/contrib/legacy_seq2seq')
-rw-r--r-- | tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py b/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py index 0582028b88..d2018bb219 100644 --- a/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py +++ b/tensorflow/contrib/legacy_seq2seq/python/ops/seq2seq.py @@ -654,7 +654,7 @@ def attention_decoder(decoder_inputs, outputs = [] prev = None - batch_attn_size = array_ops.pack([batch_size, attn_size]) + batch_attn_size = array_ops.stack([batch_size, attn_size]) attns = [ array_ops.zeros( batch_attn_size, dtype=dtype) for _ in xrange(num_heads) |