def set_estimator(self, estimator):
    super(SummarySaver, self).set_estimator(estimator)
    if (self._summary_writer is None):
        self._summary_writer = summary_io.SummaryWriter(estimator.model_dir)
def set_estimator(self, estimator):
    super(SummarySaver, self).set_estimator(estimator)
    if (self._summary_writer is None):
        self._summary_writer = summary_io.SummaryWriter(estimator.model_dir)