def __init__(self, save_steps=100, output_dir=None, summary_writer=None, scaffold=None, summary_op=None):
    "Initializes a `SummarySaver` monitor.\n\n    Args:\n      save_steps: `int`, save summaries every N steps. See `EveryN`.\n      output_dir: `string`, the directory to save the summaries to. Only used\n          if no `summary_writer` is supplied.\n      summary_writer: `SummaryWriter`. If `None` and an `output_dir` was passed,\n          one will be created accordingly.\n      scaffold: `Scaffold` to get summary_op if it's not provided.\n      summary_op: `Tensor` of type `string`. A serialized `Summary` protocol\n          buffer, as output by TF summary methods like `scalar_summary` or\n          `merge_all_summaries`.\n    "
    self._summary_op = summary_op
    self._summary_writer = summary_writer
    if ((summary_writer is None) and output_dir):
        self._summary_writer = SummaryWriterCache.get(output_dir)
    self._scaffold = scaffold
    self._save_steps = save_steps
Initializes a `SummarySaver` monitor.

Args:
  save_steps: `int`, save summaries every N steps. See `EveryN`.
  output_dir: `string`, the directory to save the summaries to. Only used
      if no `summary_writer` is supplied.
  summary_writer: `SummaryWriter`. If `None` and an `output_dir` was passed,
      one will be created accordingly.
  scaffold: `Scaffold` to get summary_op if it's not provided.
  summary_op: `Tensor` of type `string`. A serialized `Summary` protocol
      buffer, as output by TF summary methods like `scalar_summary` or
      `merge_all_summaries`.
def __init__(self, save_steps=100, output_dir=None, summary_writer=None, scaffold=None, summary_op=None):
    "Initializes a `SummarySaver` monitor.\n\n    Args:\n      save_steps: `int`, save summaries every N steps. See `EveryN`.\n      output_dir: `string`, the directory to save the summaries to. Only used\n          if no `summary_writer` is supplied.\n      summary_writer: `SummaryWriter`. If `None` and an `output_dir` was passed,\n          one will be created accordingly.\n      scaffold: `Scaffold` to get summary_op if it's not provided.\n      summary_op: `Tensor` of type `string`. A serialized `Summary` protocol\n          buffer, as output by TF summary methods like `scalar_summary` or\n          `merge_all_summaries`.\n    "
    self._summary_op = summary_op
    self._summary_writer = summary_writer
    if ((summary_writer is None) and output_dir):
        self._summary_writer = SummaryWriterCache.get(output_dir)
    self._scaffold = scaffold
    self._save_steps = save_steps