title: ValueError: Index out of range using input dim 1; input has only 1 dims for strided_slice
body: <p>When I run the following piece of code</p>
  
  <pre><code>import tensorflow as tf
  
  
  def compute_area(sides):
      a = sides[:, 0]
      b = sides[:, 1]
      c = sides[:, 2]
      # Heron formula
      s = (a + b + c) * 0.5
      area_sq = s * (s - a) * (s - b) * (s - c)
      return tf.sqrt(area_sq)
  
  
  with tf.Session() as sess:
      area = compute_area(tf.constant([5.0, 3.0, 7.1]))
      result = sess.run(area)
      print(result)
  </code></pre>
  
  <p>I get the following error</p>
  
  <pre><code>ValueError: Index out of range using input dim 1; input has only 1 dims for 'strided_slice' (op: 'StridedSlice') with input shapes: [3], [2], [2], [2] and with computed input tensors: input[3] = &lt;1 1&gt;.
  </code></pre>
  
  <p>Why is that?</p>