tf.contrib.gan.eval.eval_utils.image_grid
tf.contrib.gan.eval.image_grid
tf.contrib.gan.eval.image_grid( input_tensor, grid_shape, image_shape=(32, 32), num_channels=3 )
Defined in tensorflow/contrib/gan/python/eval/python/eval_utils_impl.py
.
Arrange a minibatch of images into a grid to form a single image.
input_tensor
: Tensor. Minibatch of images to format, either 4D ([batch size, height, width, num_channels]) or flattened ([batch size, height * width * num_channels]).grid_shape
: Sequence of int. The shape of the image grid, formatted as [grid_height, grid_width].image_shape
: Sequence of int. The shape of a single image, formatted as [image_height, image_width].num_channels
: int. The number of channels in an image.Tensor representing a single image in which the input images have been arranged into a grid.
ValueError
: The grid shape and minibatch size don't match, or the image shape and number of channels are incompatible with the input tensor.
© 2018 The TensorFlow Authors. All rights reserved.
Licensed under the Creative Commons Attribution License 3.0.
Code samples licensed under the Apache 2.0 License.
https://www.tensorflow.org/api_docs/python/tf/contrib/gan/eval/image_grid