aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/summary
diff options
context:
space:
mode:
authorGravatar Nick Felt <nickfelt@google.com>2017-11-02 11:23:42 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-11-02 11:30:09 -0700
commitf53579308d996bbf069eba4ffab68fcc9f6e69f3 (patch)
treeb9a80b68277d28a05af55d75aa755123e13eed06 /tensorflow/python/summary
parent40200401c6fe5f909d8cd65177fd09f6d6a6346a (diff)
Remove legacy TextSummaryPluginAsset class
This no longer appears to be used since text_summary was migrated to use the new SummaryMetadata approach. PiperOrigin-RevId: 174354256
Diffstat (limited to 'tensorflow/python/summary')
-rw-r--r--tensorflow/python/summary/text_summary.py25
1 files changed, 3 insertions, 22 deletions
diff --git a/tensorflow/python/summary/text_summary.py b/tensorflow/python/summary/text_summary.py
index 4031355b03..94a85d73e2 100644
--- a/tensorflow/python/summary/text_summary.py
+++ b/tensorflow/python/summary/text_summary.py
@@ -14,21 +14,18 @@
# ==============================================================================
"""Implements text_summary in TensorFlow, with TensorBoard support.
-The text_summary is basically a wrapper around the generic tensor_summary,
-and it uses a TextSummaryPluginAsset class to record which tensor_summaries
-are readable by the TensorBoard text plugin.
+The text_summary is a wrapper around the generic tensor_summary that takes a
+string-type tensor and emits a TensorSummary op with SummaryMetadata that
+notes that this summary is textual data for the TensorBoard text plugin.
"""
from __future__ import absolute_import
from __future__ import division
from __future__ import print_function
-import json
-
from tensorflow.core.framework import summary_pb2
from tensorflow.python.framework import dtypes
from tensorflow.python.ops.summary_ops import tensor_summary
-from tensorflow.python.summary import plugin_asset
PLUGIN_NAME = "text"
@@ -72,19 +69,3 @@ def text_summary(name, tensor, collections=None):
summary_metadata=summary_metadata,
collections=collections)
return t_summary
-
-
-class TextSummaryPluginAsset(plugin_asset.PluginAsset):
- """Provides a registry of text summaries for the TensorBoard text plugin."""
- plugin_name = "tensorboard_text"
-
- def __init__(self):
- self._tensor_names = []
-
- def register_tensor(self, name):
- """Register a new Tensor Summary name as containing textual data."""
- self._tensor_names.append(name)
-
- def assets(self):
- """Store the tensors registry in a file called tensors.json."""
- return {"tensors.json": json.dumps(self._tensor_names)}