aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/summary
diff options
context:
space:
mode:
authorGravatar Alexandre Passos <apassos@google.com>2018-09-13 16:18:18 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-13 16:24:39 -0700
commit5dd20118a25e8d29b7684cf5fb17951657a4a687 (patch)
tree08a2aa7554ed1875a354e55ed62f9669477d0b25 /tensorflow/python/summary
parent8f9413bf41ff89672a3415eef606ecaca7c70a2f (diff)
Convert logdir paths to strings.
This supports pathlib and other non-string path types. PiperOrigin-RevId: 212897666
Diffstat (limited to 'tensorflow/python/summary')
-rw-r--r--tensorflow/python/summary/writer/event_file_writer.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tensorflow/python/summary/writer/event_file_writer.py b/tensorflow/python/summary/writer/event_file_writer.py
index 2936a279bd..14dec982a6 100644
--- a/tensorflow/python/summary/writer/event_file_writer.py
+++ b/tensorflow/python/summary/writer/event_file_writer.py
@@ -62,7 +62,7 @@ class EventFileWriter(object):
filename_suffix: A string. Every event file's name is suffixed with
`filename_suffix`.
"""
- self._logdir = logdir
+ self._logdir = str(logdir)
if not gfile.IsDirectory(self._logdir):
gfile.MakeDirs(self._logdir)
self._event_queue = six.moves.queue.Queue(max_queue)