title: input must be 4-dimensional[1,30,144,192,3], error in tensorflow training
body: <p>I'm trying to train a gif dataset but am getting this error. 
  It says the error is probably because of the ResizeBilinear</p>
  
  <p>This is the code for the resize bilinear</p>
  
  <pre><code>input_height, input_width = hub.get_expected_image_size(module_spec)
  input_depth = hub.get_num_image_channels(module_spec)
  gif_data = tf.placeholder(tf.string, name='DecodeGIFInput')
  decoded_image = tf.image.decode_image(gif_data, channels=None, 
  dtype=tf.uint8, name=None)
  # Convert from full range of uint8 to range [0,1] of float32.
  decoded_image_as_float = tf.image.convert_image_dtype(decoded_image,
                                                      tf.float32)
  decoded_image_4d = tf.expand_dims(decoded_image_as_float, 0)
  resize_shape = tf.stack([input_height, input_width])
  resize_shape_as_int = tf.cast(resize_shape, dtype=tf.int32)
  resized_image = tf.image.resize_bilinear(decoded_image_4d,
                                         resize_shape_as_int)
  return gif_data, resized_image
  </code></pre>
  
  <p>This is the link to the github of the full file. 
  <a href="https://github.com/GauranshMathur/retrainpy/blob/master/retrain.py" rel="nofollow noreferrer">Link to github retrain.py</a></p>