aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/framework
diff options
context:
space:
mode:
authorGravatar A. Unique TensorFlower <gardener@tensorflow.org>2018-09-05 15:54:50 -0700
committerGravatar TensorFlower Gardener <gardener@tensorflow.org>2018-09-05 15:59:38 -0700
commitb98d33daa08781d5b55a3c583f62e5753dc1da51 (patch)
treedd06de34d6c71d1d45bbc14c24364eadc86e4cee /tensorflow/python/framework
parent007443c69511aa001696a53150aa5a4334ffb8b9 (diff)
Mark tf.GraphKeys.VARIABLES as deprecated
PiperOrigin-RevId: 211714574
Diffstat (limited to 'tensorflow/python/framework')
-rw-r--r--tensorflow/python/framework/ops.py6
1 files changed, 2 insertions, 4 deletions
diff --git a/tensorflow/python/framework/ops.py b/tensorflow/python/framework/ops.py
index 4cfd639bf9..9401309c19 100644
--- a/tensorflow/python/framework/ops.py
+++ b/tensorflow/python/framework/ops.py
@@ -55,6 +55,7 @@ from tensorflow.python.platform import app
from tensorflow.python.platform import tf_logging as logging
from tensorflow.python.util import compat
from tensorflow.python.util import decorator_utils
+from tensorflow.python.util import deprecation
from tensorflow.python.util import function_utils
from tensorflow.python.util import lock_util
from tensorflow.python.util import tf_contextlib
@@ -5807,11 +5808,8 @@ class GraphKeys(object):
_STREAMING_MODEL_PORTS = "streaming_model_ports"
@decorator_utils.classproperty
+ @deprecation.deprecated(None, "Use `tf.GraphKeys.GLOBAL_VARIABLES` instead.")
def VARIABLES(cls): # pylint: disable=no-self-argument
- logging.log_first_n(logging.WARN,
- "VARIABLES collection name is deprecated, please use "
- "GLOBAL_VARIABLES instead; VARIABLES will be removed "
- "after 2017-03-02.", 1)
return cls.GLOBAL_VARIABLES