From ed3c35723429b64b8770ed2687525c12c9229ec0 Mon Sep 17 00:00:00 2001 From: shashvatshahi1998 Date: Fri, 19 Apr 2019 19:16:23 +0530 Subject: [PATCH] Changed dcumentation --- tensorflow/python/ops/rnn.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tensorflow/python/ops/rnn.py b/tensorflow/python/ops/rnn.py index bd5abd53db982d..0ad8939b0e1400 100644 --- a/tensorflow/python/ops/rnn.py +++ b/tensorflow/python/ops/rnn.py @@ -547,7 +547,9 @@ def dynamic_rnn(cell, inputs, sequence_length=None, initial_state=None, nested) tuple of Tensors each with dimensions `[batch_size, ...]`. sequence_length: (optional) An int32/int64 vector sized `[batch_size]`. Used to copy-through state and zero-out outputs when past a batch - element's sequence length. So it's more for performance than correctness. + element's sequence length. This argument enables this API to extract + the last VALID state of RNN instead of a PADDED time step, so it is + for correctness. initial_state: (optional) An initial state for the RNN. If `cell.state_size` is an integer, this must be a `Tensor` of appropriate type and shape `[batch_size, cell.state_size]`.