What is the primary difference between the reverse() and reverse_sequence() in tensorflow?
<p>I am using simple tensorflow example to flip the image. I had used the reverse_sequence as well as the reverse method and the result is same.If just using reverse() method we can flip the image then why should we use the reverse_sequence() method? I Just want to know that what is the main primary difference between this methods? Thanks in advance :)</p>

<pre><code>import tensorflow as tf
import matplotlib.image as mpimg
import matplotlib.pyplot as plt

# First, load the image again
filename = "MarshOrchid.jpg"
image = mpimg.imread(filename)

# Create a TensorFlow Variable
x = tf.Variable(image, name='x')
height, width, depth = image.shape

model = tf.initialize_all_variables()

with tf.Session() as session:
    # x= tf.reverse(x, dims=[False, True, False],name="reverse")
    x = tf.reverse_sequence(x, [width] * height, 1, batch_dim=0)
    session.run(model)
    result = session.run(x)
    print(session.run(x))

plt.imshow(result)
plt.show()
</code></pre>