diff options
author | Anna R <annarev@google.com> | 2018-01-31 11:25:38 -0800 |
---|---|---|
committer | Michael Case <mikecase@google.com> | 2018-01-31 17:20:42 -0800 |
commit | adc9ee7150c45830eb0857f6b9e935b9672b7bb1 (patch) | |
tree | ed3ca404ea56ce502728f0602e3c511c56058b7f /tensorflow/python/summary | |
parent | acb2d6147415f8556ac74cbf45118baf00ca64df (diff) |
Adding tf_export decorators/calls to TensorFlow functions and constants.
PiperOrigin-RevId: 184020524
Diffstat (limited to 'tensorflow/python/summary')
-rw-r--r-- | tensorflow/python/summary/writer/writer.py | 2 | ||||
-rw-r--r-- | tensorflow/python/summary/writer/writer_cache.py | 2 |
2 files changed, 4 insertions, 0 deletions
diff --git a/tensorflow/python/summary/writer/writer.py b/tensorflow/python/summary/writer/writer.py index 12f120116f..1f3f228704 100644 --- a/tensorflow/python/summary/writer/writer.py +++ b/tensorflow/python/summary/writer/writer.py @@ -32,6 +32,7 @@ from tensorflow.python.platform import gfile from tensorflow.python.platform import tf_logging as logging from tensorflow.python.summary import plugin_asset from tensorflow.python.summary.writer.event_file_writer import EventFileWriter +from tensorflow.python.util.tf_export import tf_export _PLUGINS_DIR = "plugins" @@ -276,6 +277,7 @@ class SummaryToEventTransformer(object): self.event_writer.add_event(event) +@tf_export("summary.FileWriter") class FileWriter(SummaryToEventTransformer): """Writes `Summary` protocol buffers to event files. diff --git a/tensorflow/python/summary/writer/writer_cache.py b/tensorflow/python/summary/writer/writer_cache.py index bad289303c..645fa28a37 100644 --- a/tensorflow/python/summary/writer/writer_cache.py +++ b/tensorflow/python/summary/writer/writer_cache.py @@ -22,8 +22,10 @@ import threading from tensorflow.python.framework import ops from tensorflow.python.summary.writer.writer import FileWriter +from tensorflow.python.util.tf_export import tf_export +@tf_export('summary.FileWriterCache') class FileWriterCache(object): """Cache for file writers. |