parameters: (self, tensors, every_n_iter=100)
docstring: Initializes a LoggingHook monitor.
  
      Args:
        tensors: `dict` of tag to tensors/names or
            `iterable` of tensors/names.
        every_n_iter: `int`, print every N iteration.
  
      Raises:
       ValueError: if `every_n_iter` is non-positive.
docstring_summary: Initializes a LoggingHook monitor.
docstring_tokens: Initializes a LoggingHook monitor .
function: def __init__(self, tensors, every_n_iter=100):
      """Initializes a LoggingHook monitor.
  
      Args:
        tensors: `dict` of tag to tensors/names or
            `iterable` of tensors/names.
        every_n_iter: `int`, print every N iteration.
  
      Raises:
       ValueError: if `every_n_iter` is non-positive.
      """
      if every_n_iter <= 0:
        raise ValueError("Invalid every_n_iter=%s." % every_n_iter)
      if not isinstance(tensors, dict):
        tensors = {item: item for item in tensors}
      self._tensors = tensors
      self._every_n_iter = every_n_iter
function_tokens: def __init__ ( self , tensors , every_n_iter = 100 ) : if every_n_iter <= 0 : raise ValueError ( "Invalid every_n_iter=%s." % every_n_iter ) if not isinstance ( tensors , dict ) : tensors = { item : item for item in tensors } self . _tensors = tensors self . _every_n_iter = every_n_iter