Remove outdated documentation for .ref()

PiperOrigin-RevId: 294292266
Change-Id: I1f6716702dbf3493ae4a65405e916de70d54f043
This commit is contained in:
A. Unique TensorFlower 2020-02-10 13:35:21 -08:00 committed by TensorFlower Gardener
parent 488ac44f1f
commit c19d168eaa
2 changed files with 0 additions and 4 deletions

View File

@ -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.

View File

@ -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.