aboutsummaryrefslogtreecommitdiffhomepage
path: root/tensorflow/python/platform
diff options
context:
space:
mode:
authorGravatar rasmi <rrelasmar@gmail.com>2018-08-08 14:34:16 -0700
committerGravatar GitHub <noreply@github.com>2018-08-08 14:34:16 -0700
commit731fc1ecaac8a527ac606ff595f313ab9ebbb7fa (patch)
treed11fa806f88d8000a7e908a622055b7446f481a9 /tensorflow/python/platform
parent3d1661826ec668d717122a88463ab9b1c1e6f7ae (diff)
Add deprecation warning to tf.gfile.FastGFile.
Fixes #12663.
Diffstat (limited to 'tensorflow/python/platform')
-rw-r--r--tensorflow/python/platform/gfile.py2
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/python/platform/gfile.py b/tensorflow/python/platform/gfile.py
index 45de047894..510701e344 100644
--- a/tensorflow/python/platform/gfile.py
+++ b/tensorflow/python/platform/gfile.py
@@ -33,6 +33,7 @@ from tensorflow.python.lib.io.file_io import rename as Rename
from tensorflow.python.lib.io.file_io import stat as Stat
from tensorflow.python.lib.io.file_io import walk as Walk
# pylint: enable=unused-import
+from tensorflow.python.util.deprecation import deprecated
from tensorflow.python.util.tf_export import tf_export
@@ -52,6 +53,7 @@ class GFile(_FileIO):
@tf_export('gfile.FastGFile')
+@deprecated(None, 'Use tf.gfile.GFile.')
class FastGFile(_FileIO):
"""File I/O wrappers without thread locking.