class_docstr: Saves data in event and summary protos for tensorboard.
class_docstr_tok: ["Saves","data","in","event","and","summary","protos","for","tensorboard","."]
docstr: Saves (rows, cols) tiled images from np.ndarray.
  
  If either rows or cols aren't given, they are determined automatically
  from the size of the image batch, if neither are given a long column
  of images is produced. This truncates the image batch rather than padding
  if it doesn't fill the final row.
  
  Args:
    tag: str: label for this data
    images: ndarray: [N,H,W,1] or [N,H,W,3] to tile in 2d
    step: int: training step
    rows: int: number of rows in tile
    cols: int: number of columns in tile
docstr_tok: ["Saves","(","rows",",","cols",")","tiled","images","from","np.ndarray",".","If","either","rows","or","cols","are","n't","given",",","they","are","determined","automatically","from","the","size","of","the","image","batch",",","if","neither","are","given","a","long","column","of","images","is","produced",".","This","truncates","the","image","batch","rather","than","padding","if","it","does","n't","fill","the","final","row",".","Args",":","tag",":","str",":","label","for","this","data","images",":","ndarray",":","[","N",",","H",",","W,1","]","or","[","N",",","H",",","W,3","]","to","tile","in","2d","step",":","int",":","training","step","rows",":","int",":","number","of","rows","in","tile","cols",":","int",":","number","of","columns","in","tile"]
code: def images(self, tag, images, step=None, rows=None, cols=None):
      """Saves (rows, cols) tiled images from np.ndarray.
  
      If either rows or cols aren't given, they are determined automatically
      from the size of the image batch, if neither are given a long column
      of images is produced. This truncates the image batch rather than padding
      if it doesn't fill the final row.
  
      Args:
        tag: str: label for this data
        images: ndarray: [N,H,W,1] or [N,H,W,3] to tile in 2d
        step: int: training step
        rows: int: number of rows in tile
        cols: int: number of columns in tile
      """
      images = np.array(images)
      if step is None:
          step = self._step
      else:
          self._step = step
      n_images = np.shape(images)[0]
      if rows is None and cols is None:
          rows = 1
          cols = n_images
      elif rows is None:
          rows = n_images // cols
      elif cols is None:
          cols = n_images // rows
      tiled_images = _pack_images(images, rows, cols)
      self.image(tag, tiled_images, step=step)
  
imports: import io
  import struct
  import time
  import warnings
  import wave
  import matplotlib
  import matplotlib.pyplot
  import numpy
  import tensorflow
  from tensorflow.core.util import event_pb2
  from tensorflow.python.summary.writer.event_file_writer import EventFileWriter
label_desc: Use image node_id 8 for calling the SummaryWriter obj's underlying member method code with example usage: obj.images(tag, images, step, rows, cols) without return types