I am new to TensorFlow and have difficulties understanding the RNN module. I am trying to extract hidden/cell states from an LSTM. For my code, I am using the implementation fr
You may simply collect the values of the states in the same way accuracy is collected.
states
I guess, pred, states, acc = sess.run(pred, states, accuracy, feed_dict={x: batch_x, y: batch_y}) should work perfectly fine.
pred, states, acc = sess.run(pred, states, accuracy, feed_dict={x: batch_x, y: batch_y})