title: TensorFlow - Input 'split_dim' of 'Split' Op has type float32 that does not match expected type of int32
body: <p>I've installed tensorflow using pip on ubuntu 16.04 LTS, when running this code <a href="https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/3_NeuralNetworks/recurrent_network.py" rel="noreferrer">https://github.com/aymericdamien/TensorFlow-Examples/blob/master/examples/3_NeuralNetworks/recurrent_network.py</a> i am getting this error</p>
  
  <pre><code>Successfully downloaded train-images-idx3-ubyte.gz 9912422 bytes. 
  Extracting /tmp/data/train-images-idx3-ubyte.gz 
  Successfully downloaded train-labels-idx1-ubyte.gz 28881 bytes. Extracting /tmp/data/train-labels-idx1-ubyte.gz 
  Successfully downloaded t10k-images-idx3-ubyte.gz 1648877 bytes. 
  Extracting /tmp/data/t10k-images-idx3-ubyte.gz
  Successfully downloaded t10k-labels-idx1-ubyte.gz 4542 bytes. 
  Extracting /tmp/data/t10k-labels-idx1-ubyte.gz 
  Traceback (most recent call last): 
      File "deep.py", line 71, in &lt;module&gt;
          pred = RNN(x, weights, biases)   
      File "deep.py", line 60, in RNN
          x = tf.split(x, n_steps, 0)   
      File "/home/newuser/.local/lib/python2.7/site-packages/tensorflow/python/ops/array_ops.py", line 1234, in split
          name=name)   
      File "/home/newuser/.local/lib/python2.7/site-packages/tensorflow/python/ops/gen_array_ops.py", line 3241, in _split
      num_split=num_split, name=name)   
      File "/home/newuser/.local/lib/python2.7/site-packages/tensorflow/python/framework/op_def_library.py", line 508, in apply_op
      (prefix, dtypes.as_dtype(input_arg.type).name)) 
  TypeError: Input 'split_dim' of 'Split' Op has type float32 that does not match expected type of int32.
  </code></pre>