title: TensorFLow: tf.contrib.rnn module object is not callable
body: <p>I am trying to run a tutorial (<a href="http://r2rt.com/recurrent-neural-networks-in-tensorflow-ii.html" rel="nofollow noreferrer">http://r2rt.com/recurrent-neural-networks-in-tensorflow-ii.html</a>) and have some issue with modules that have moved.</p>
  
  <p>I researched a bit and found that some classes have moved and fixed:</p>
  
  <pre><code>tf.nn.rnn_cell.BasicRNNCell(state_size)
  </code></pre>
  
  <p>to</p>
  
  <pre><code> tf.contrib.rnn.BasicRNNCell(state_size)   (that should be correct right?)
  </code></pre>
  
  <p>This works now.</p>
  
  <p>However, I have this function I can't seem to fix:</p>
  
  <pre><code>rnn_outputs, final_state = tf.nn.rnn(cell, rnn_inputs, initial_state=init_state)
  --&gt; as expected, says: module 'tensorflow.python.ops.nn' has no attribute 'rnn'
  </code></pre>
  
  <p>So I tried:</p>
  
  <pre><code>rnn_outputs, final_state = tf.contrib.rnn(cell, rnn_inputs, initial_state=init_state)
  </code></pre>
  
  <p>But that says: 'module' object is not callable</p>
  
  <p>I am using python3 (tried 2 as well), with a fresh installed TensorFlow 1.0.0 through pip3.</p>
  
  <p>I tried looking at the API, but it's not making much sense to me, as I am still going through the tutorial to try to understand what is happening. I would think maybe the arguments have changed, or maybe this is in a sub-function now? <a href="https://www.tensorflow.org/api_docs/python/tf/contrib/rnn" rel="nofollow noreferrer">https://www.tensorflow.org/api_docs/python/tf/contrib/rnn</a></p>