Reshape Tensor from shape (n, h, w, c) to (n, h * w, c)

Viewed 243
1 Answers

The tf.reshape() function should work for you:

Y = tf.reshape(X, (n, h*w, c))
Related