aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/contrib/seq2seq
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-03-12 03:13:15 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-03-12 03:17:39 -0700
commitcd67e8eb088537874b53b4fa52d02ff50c4a66fa (patch)
tree25d7394800ac08f3e0b19f4d9ba043e3ccc20217 /tensorflow/contrib/seq2seq
parent107e0904233c35791917654a82631ce2fca7bd37 (diff)
Lint some files.
PiperOrigin-RevId: 188698275
Diffstat (limited to 'tensorflow/contrib/seq2seq')
-rw-r--r--tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py1
1 files changed, 0 insertions, 1 deletions
diff --git a/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py b/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py
index 22dc7f2eda..6e57ccd6dd 100644
--- a/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py
+++ b/tensorflow/contrib/seq2seq/python/ops/beam_search_decoder.py
@@ -569,7 +569,6 @@ def _beam_search_step(time, logits, next_cell_state, beam_state, batch_size,
time = ops.convert_to_tensor(time, name="time")
# During the first time step we only consider the initial beam
- scores_shape = array_ops.shape(scores)
scores_flat = array_ops.reshape(scores, [batch_size, -1])
# Pick the next beams according to the specified successors function