Skip to content

Commit ffaaa3e

Browse files
author
Maciek Chociej
authored
Merge pull request tensorflow#7780 from alanwang93/r1.0
fix some documentation style faults for dynamic_rnn, dynamic_rnn_decod…
2 parents 52389ea + 30dfd31 commit ffaaa3e

File tree

3 files changed

+3
-1
lines changed

3 files changed

+3
-1
lines changed

tensorflow/contrib/seq2seq/python/ops/seq2seq.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,7 @@ def dynamic_rnn_decoder(cell, decoder_fn, inputs=None, sequence_length=None,
7676
7777
The input to `cell` at each time step will be a `Tensor` with dimensions
7878
`[batch_size, ...]`.
79+
7980
sequence_length: (optional) An int32/int64 vector sized `[batch_size]`.
8081
if `inputs` is not None and `sequence_length` is None it is inferred
8182
from the `inputs` as the maximal possible sequence length.

tensorflow/python/ops/math_ops.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2169,7 +2169,7 @@ def tensordot(a, b, axes, name=None):
21692169
Example 2: When `a` and `b` are matrices (order 2), the case
21702170
`axes = [[1], [0]]` is equivalent to matrix multiplication.
21712171
2172-
Example 3: Suppose that \\(a_ijk\\) and \\(b_lmn\\) represent two
2172+
Example 3: Suppose that \\(a_{ijk}\\) and \\(b_{lmn}\\) represent two
21732173
tensors of order 3. Then, `contract(a, b, [0], [2])` is the order 4 tensor
21742174
\\(c_{jklm}\\) whose entry
21752175
corresponding to the indices \\((j,k,l,m)\\) is given by:

tensorflow/python/ops/rnn.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -419,6 +419,7 @@ def dynamic_rnn(cell, inputs, sequence_length=None, initial_state=None,
419419
420420
The input to `cell` at each time step will be a `Tensor` or (possibly
421421
nested) tuple of Tensors each with dimensions `[batch_size, ...]`.
422+
422423
sequence_length: (optional) An int32/int64 vector sized `[batch_size]`.
423424
initial_state: (optional) An initial state for the RNN.
424425
If `cell.state_size` is an integer, this must be

0 commit comments

Comments
 (0)