tf.contrib.layers.images_to_sequence

View source on GitHub

Convert a batch of images into a batch of sequences.

inputs a (num_images, height, width, depth) tensor
data_format A string. NHWC (default) and NCHW are supported.
outputs_collections The collections to which the outputs are added.
scope Optional scope for name_scope.

ValueError If data_format is not either NCHW or NHWC.

(width, num_images*height, depth) sequence tensor