How do I set TensorFlow RNN state when state_is_tuple=True?
One problem with a Tensorflow placeholder is that you can only feed it with a Python list or Numpy array (I think). So you can’t save the state between runs in tuples of LSTMStateTuple. I solved this by saving the state in a tensor like this initial_state = np.zeros((num_layers, 2, batch_size, state_size)) You have two … Read more