of the form NCHW, NHWC, CHW, HWC, HW, WH, etc.
  Shape:
     img_tensor: Default is (N, 3, H, W). If "dataformats" is
     specified, other shape will be accepted. e.g. NCHW or NHWC.

  Examples:

     from torch.utils.tensorboard import SummaryWriter
     import numpy as np

     img_batch = np.zeros((16, 3, 100, 100))
     for i in range(16):
         img_batch[i, 0] = np.arange(0, 10000).reshape(100, 100) / 10000 / 16 * i
         img_batch[i, 1] = (1 - np.arange(0, 10000).reshape(100, 100) / 10000) / 16 * i

     writer = SummaryWriter()
     writer.add_images('my_image_batch', img_batch, 0)
     writer.close()

  Expected result:

  [image]

add_figure(tag, figure, global_step=None, close=True, walltime=None)
  Render matplotlib figure into an image and add it to summary.

  Note that this requires the "matplotlib" package.

  Parameters:
     * **tag** (*str*) -- Data identifier
