From c19d168eaa35d22d8e5d4d27f4330490251e6dc2 Mon Sep 17 00:00:00 2001 From: "A. Unique TensorFlower" Date: Mon, 10 Feb 2020 13:35:21 -0800 Subject: [PATCH] Remove outdated documentation for .ref() PiperOrigin-RevId: 294292266 Change-Id: I1f6716702dbf3493ae4a65405e916de70d54f043 --- tensorflow/python/framework/ops.py | 2 -- tensorflow/python/ops/variables.py | 2 -- 2 files changed, 4 deletions(-) diff --git a/tensorflow/python/framework/ops.py b/tensorflow/python/framework/ops.py index 79bc55e9e35..2c8cdc325e2 100644 --- a/tensorflow/python/framework/ops.py +++ b/tensorflow/python/framework/ops.py @@ -823,8 +823,6 @@ class Tensor(_TensorLike): # documentation here, please update tf.Variable.ref() as well. """Returns a hashable reference object to this Tensor. - Warning: Experimental API that could be changed or removed. - The primary use case for this API is to put tensors in a set/dictionary. We can't put tensors in a set/dictionary as `tensor.__hash__()` is no longer available starting Tensorflow 2.0. diff --git a/tensorflow/python/ops/variables.py b/tensorflow/python/ops/variables.py index f4fff36153a..1080778e3d3 100644 --- a/tensorflow/python/ops/variables.py +++ b/tensorflow/python/ops/variables.py @@ -1218,8 +1218,6 @@ class Variable(six.with_metaclass(VariableMetaclass, trackable.Trackable)): # documentation here, please update tf.Tensor.ref() as well. """Returns a hashable reference object to this Variable. - Warning: Experimental API that could be changed or removed. - The primary use case for this API is to put variables in a set/dictionary. We can't put variables in a set/dictionary as `variable.__hash__()` is no longer available starting Tensorflow 2.0.