aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/summary
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2017-07-10 22:01:27 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2017-07-10 22:05:54 -0700
commitea3d9ab10f6391ce131f0fd39a214c66fdf06ae6 (patch)
tree012a8431ae0a0322465f603af40e6a01edb7c6d6 /tensorflow/python/summary
parentaee7408dca2c69a5b108bd1fad6036feb772a867 (diff)
Removed the _tensor_summary_v2 op.
Made the tensor_summary op directly use the TensorSummaryV2 kernel. PiperOrigin-RevId: 161486007
Diffstat (limited to 'tensorflow/python/summary')
-rw-r--r--tensorflow/python/summary/summary.py2
-rw-r--r--tensorflow/python/summary/text_summary.py4
2 files changed, 2 insertions, 4 deletions
diff --git a/tensorflow/python/summary/summary.py b/tensorflow/python/summary/summary.py
index f3600793a6..90afcc0a11 100644
--- a/tensorflow/python/summary/summary.py
+++ b/tensorflow/python/summary/summary.py
@@ -20,7 +20,6 @@ See the @{$python/summary} guide.
@@FileWriter
@@FileWriterCache
@@tensor_summary
-@@_tensor_summary_v2
@@scalar
@@histogram
@@audio
@@ -56,7 +55,6 @@ from tensorflow.python.ops import summary_op_util as _summary_op_util
# exports tensor-related summaries
# pylint: disable=unused-import
-from tensorflow.python.ops.summary_ops import _tensor_summary_v2
from tensorflow.python.ops.summary_ops import tensor_summary
# pylint: enable=unused-import
diff --git a/tensorflow/python/summary/text_summary.py b/tensorflow/python/summary/text_summary.py
index 72799f2c6c..b97c02666c 100644
--- a/tensorflow/python/summary/text_summary.py
+++ b/tensorflow/python/summary/text_summary.py
@@ -28,7 +28,7 @@ import json
from tensorflow.core.framework import summary_pb2
from tensorflow.python.framework import dtypes
-from tensorflow.python.ops.summary_ops import _tensor_summary_v2
+from tensorflow.python.ops.summary_ops import tensor_summary
from tensorflow.python.summary import plugin_asset
PLUGIN_NAME = "text"
@@ -72,7 +72,7 @@ def text_summary(name, tensor, collections=None):
data_dict = text_plugin_data._asdict() # pylint: disable=protected-access
summary_metadata.plugin_data.add(
plugin_name=PLUGIN_NAME, content=json.dumps(data_dict))
- t_summary = _tensor_summary_v2(
+ t_summary = tensor_summary(
name=name,
tensor=tensor,
summary_metadata=summary_metadata,