Skip to content

Commit

Permalink
Merge pull request tensorflow#22188 from pengwa:fix_dynamic_rnn_comment
Browse files Browse the repository at this point in the history
PiperOrigin-RevId: 212469565
  • Loading branch information
tensorflower-gardener committed Sep 11, 2018
2 parents 7cfed35 + 6bbe31c commit 36568a8
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
4 changes: 4 additions & 0 deletions tensorflow/python/ops/rnn.py
Original file line number Diff line number Diff line change
Expand Up @@ -709,6 +709,10 @@ def _dynamic_rnn_loop(cell,
Raises:
ValueError: If the input depth cannot be inferred via shape inference
from the inputs.
ValueError: If time_step is not the same for all the elements in the
inputs.
ValueError: If batch_size is not the same for all the elements in the
inputs.
"""
state = initial_state
assert isinstance(parallel_iterations, int), "parallel_iterations must be int"
Expand Down
2 changes: 1 addition & 1 deletion tensorflow/python/ops/rnn_cell_impl.py
Original file line number Diff line number Diff line change
Expand Up @@ -954,7 +954,7 @@ def call(self, inputs, state):
"""Run one step of LSTM.
Args:
inputs: input Tensor, 2D, `[batch, num_units].
inputs: input Tensor, must be 2-D, `[batch, input_size]`.
state: if `state_is_tuple` is False, this must be a state Tensor,
`2-D, [batch, state_size]`. If `state_is_tuple` is True, this must be a
tuple of state Tensors, both `2-D`, with column sizes `c_state` and
Expand Down

0 comments on commit 36568a8

Please sign in to comment.