def __init__(self, tensor_names, every_n=100, first_n=1):
    'Initializes a PrintTensor monitor.\n\n    Args:\n      tensor_names: `dict` of tag to tensor names or\n          `iterable` of tensor names (strings).\n      every_n: `int`, print every N steps. See `PrintN.`\n      first_n: `int`, also print the first N steps. See `PrintN.`\n    '
    super(PrintTensor, self).__init__(every_n, first_n)
    if (not isinstance(tensor_names, dict)):
        tensor_names = {item: item for item in tensor_names}
    self._tensor_names = tensor_names
Initializes a PrintTensor monitor.

Args:
  tensor_names: `dict` of tag to tensor names or
      `iterable` of tensor names (strings).
  every_n: `int`, print every N steps. See `PrintN.`
  first_n: `int`, also print the first N steps. See `PrintN.`
def __init__(self, tensor_names, every_n=100, first_n=1):
    'Initializes a PrintTensor monitor.\n\n    Args:\n      tensor_names: `dict` of tag to tensor names or\n          `iterable` of tensor names (strings).\n      every_n: `int`, print every N steps. See `PrintN.`\n      first_n: `int`, also print the first N steps. See `PrintN.`\n    '
    super(PrintTensor, self).__init__(every_n, first_n)
    if (not isinstance(tensor_names, dict)):
        tensor_names = {item: item for item in tensor_names}
    self._tensor_names = tensor_names