title: AttributeError: 'tensorflow.python.ops.rnn' has no attribute 'rnn'
body: <p>I am following <a href="https://pythonprogramming.net/rnn-tensorflow-python-machine-learning-tutorial/" rel="noreferrer">this tutorial</a> on Recurrent Neural Networks.</p>
  
  <p>This is the imports:</p>
  
  <pre><code>import tensorflow as tf
  from tensorflow.examples.tutorials.mnist import input_data
  from tensorflow.python.ops import rnn
  from tensorflow.contrib.rnn import core_rnn_cell
  </code></pre>
  
  <p>This is code for input processing:</p>
  
  <pre><code>x = tf.transpose(x, [1,0,2])
  x = tf.reshape(x, [-1, chunk_size])
  x = tf.split(x, n_chunks, 0)
  
  lstm_cell = core_rnn_cell.BasicLSTMCell(rnn_size)
  outputs, states = rnn.rnn(lstm_cell, x, dtype=tf.float32)
  </code></pre>
  
  <p>I am getting the following error for the <code>outputs, states</code>:</p>
  
  <pre><code>AttributeError: module 'tensorflow.python.ops.rnn' has no attribute 'rnn'
  </code></pre>
  
  <p>TensorFlow was updated recently, so what should be the new code for the offending line</p>