Correct argument doc for BasicLSTMCell.call (#16554)
authorYanbo Liang <ybliang8@gmail.com>
Thu, 12 Apr 2018 01:42:50 +0000 (18:42 -0700)
committerJonathan 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

index cbc2dcf..54f4e0f 100644 (file)
@@ -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