from tensorflow.contrib.learn.python.learn.summary_writer_cache import SummaryWriterCache

    if self._summary_writer is None:
      self._summary_writer = SummaryWriterCache.get(estimator.model_dir)
