projects
/
platform
/
upstream
/
tensorflow.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
1caeb20
)
Correct argument doc for BasicLSTMCell.call (#16554)
author
Yanbo Liang
<ybliang8@gmail.com>
Thu, 12 Apr 2018 01:42:50 +0000
(18:42 -0700)
committer
Jonathan Hseu
<vomjom@vomjom.net>
Thu, 12 Apr 2018 01:42:50 +0000
(18:42 -0700)
* Correct argument doc for BasicLSTMCell.call
* change self._num_units to num_units.
tensorflow/python/ops/rnn_cell_impl.py
patch
|
blob
|
history
diff --git
a/tensorflow/python/ops/rnn_cell_impl.py
b/tensorflow/python/ops/rnn_cell_impl.py
index
cbc2dcf
..
54f4e0f
100644
(file)
--- a/
tensorflow/python/ops/rnn_cell_impl.py
+++ b/
tensorflow/python/ops/rnn_cell_impl.py
@@
-599,9
+599,9
@@
class BasicLSTMCell(LayerRNNCell):
Args:
inputs: `2-D` tensor with shape `[batch_size, input_size]`.
state: An `LSTMStateTuple` of state tensors, each shaped
- `[batch_size,
self.state_size
]`, if `state_is_tuple` has been set to
+ `[batch_size,
num_units
]`, if `state_is_tuple` has been set to
`True`. Otherwise, a `Tensor` shaped
- `[batch_size, 2 *
self.state_size
]`.
+ `[batch_size, 2 *
num_units
]`.
Returns:
A pair containing the new hidden state, and the new state (either a