Inputs not a sequence wth RNNs and TensorFlow
<p>I have some very basic lstm code with tensorflow and python, where my code is </p>

<p><code>output = tf.nn.rnn(tf.nn.rnn_cell.BasicLSTMCell(10), input_flattened, initial_state=tf.placeholder("float", [None, 20]))</code></p>

<p>where my input flattened is shape <code>[?, 5, 22501]</code></p>

<p>I'm getting the error <code>TypeError: inputs must be a sequence</code> on the <code>state</code> parameter of the lstm, and I'm ripping my hair out trying to find out why it is giving me this error. Any help would be greatly appreciated.</p>