diff options
Diffstat (limited to 'tensorflow/python/platform/gfile.py')
-rw-r--r-- | tensorflow/python/platform/gfile.py | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/tensorflow/python/platform/gfile.py b/tensorflow/python/platform/gfile.py index 45de047894..5927bc2409 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 @@ -62,6 +63,7 @@ class FastGFile(_FileIO): invocations in network filesystems). """ + @deprecated(None, 'Use tf.gfile.GFile.') def __init__(self, name, mode='r'): super(FastGFile, self).__init__(name=name, mode=mode) |