code: def every_other(x, name=None):
    
    with tf.name_scope(name, 'every_other', [x]) as scope:
      x = tf.convert_to_tensor(x, name='x')
      return tf.reshape(
          tf.slice(
              tf.reshape(x, [-1, 2]), [0, 0], [-1, 1]),
          [-1],
          name=scope)
docs: Drops every other value from the tensor and returns a 1D tensor.
  
    This is useful if you are running multiple inputs through a model tower
    before splitting them and you want to line it up with some other data.
  
    Args:
      x: the target tensor.
      name: the name for this op, defaults to every_other
    Returns:
      A tensorflow op.