Skip to content

Commit c17a5a1

Browse files
committed
update tf LSTM cell comments
1 parent 75dbca9 commit c17a5a1

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

examples/3 - Neural Networks/recurrent_network.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,8 @@
3434

3535
# tf Graph input
3636
x = tf.placeholder("float", [None, n_steps, n_input])
37-
istate = tf.placeholder("float", [None, 2*n_hidden]) #state & cell => 2x n_hidden
37+
# Tensorflow LSTM cell requires 2x n_hidden length (state & cell)
38+
istate = tf.placeholder("float", [None, 2*n_hidden])
3839
y = tf.placeholder("float", [None, n_classes])
3940

4041
# Define weights

0 commit comments

Comments
 (0)