From 58a378f9f608c942ffe66ba12cc85f8d8fc3e7a4 Mon Sep 17 00:00:00 2001 From: Yong Tang Date: Tue, 28 Apr 2020 12:49:13 -0700 Subject: [PATCH] Remove `print` in docstring as it causes discrepancy in doctest Signed-off-by: Yong Tang --- tensorflow/python/ops/histogram_ops.py | 10 ++++------ 1 file changed, 4 insertions(+), 6 deletions(-) diff --git a/tensorflow/python/ops/histogram_ops.py b/tensorflow/python/ops/histogram_ops.py index 3ef711a838f..ffdd900ec71 100644 --- a/tensorflow/python/ops/histogram_ops.py +++ b/tensorflow/python/ops/histogram_ops.py @@ -68,9 +68,8 @@ def histogram_fixed_width_bins(values, >>> nbins = 5 >>> value_range = [0.0, 5.0] >>> new_values = [-1.0, 0.0, 1.5, 2.0, 5.0, 15] - >>> indices = tf.histogram_fixed_width_bins(new_values, value_range, nbins=5) - >>> print(indices) - tf.Tensor([0 0 1 2 4 4], shape=(6,), dtype=int32) + >>> tf.histogram_fixed_width_bins(new_values, value_range, nbins=5) + ``` """ with ops.name_scope(name, 'histogram_fixed_width_bins', @@ -136,9 +135,8 @@ def histogram_fixed_width(values, >>> nbins = 5 >>> value_range = [0.0, 5.0] >>> new_values = [-1.0, 0.0, 1.5, 2.0, 5.0, 15] - >>> hist = tf.histogram_fixed_width(new_values, value_range, nbins=5) - >>> print(hist) - tf.Tensor([2 1 1 0 2], shape=(5,), dtype=int32) + >>> tf.histogram_fixed_width(new_values, value_range, nbins=5) + ``` """ with ops.name_scope(name, 'histogram_fixed_width',