diff options
Diffstat (limited to 'tensorflow/contrib/framework/python/framework/tensor_util.py')
-rw-r--r-- | tensorflow/contrib/framework/python/framework/tensor_util.py | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/tensorflow/contrib/framework/python/framework/tensor_util.py b/tensorflow/contrib/framework/python/framework/tensor_util.py index 6852dee979..470fb15fd6 100644 --- a/tensorflow/contrib/framework/python/framework/tensor_util.py +++ b/tensorflow/contrib/framework/python/framework/tensor_util.py @@ -28,6 +28,7 @@ from tensorflow.python.ops import array_ops from tensorflow.python.ops import check_ops from tensorflow.python.ops import control_flow_ops from tensorflow.python.ops import math_ops +from tensorflow.python.util.deprecation import deprecated __all__ = [ @@ -77,6 +78,11 @@ def reduce_sum_n(tensors, name=None): return math_ops.add_n(tensors, name=name_scope) +@deprecated( + None, + 'Please switch to tf.confusion_matrix.remove_squeezable_dimensions. Note ' + 'that order of the inputs and ouputs of labels and predictions have also ' + 'been switched.') def remove_squeezable_dimensions(predictions, labels, name=None): """Squeeze last dim if ranks of `predictions` and `labels` differ by 1. |