diff options
author | Anna R <annarev@google.com> | 2018-04-25 11:52:08 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2018-04-25 11:57:31 -0700 |
commit | fe965a8502c1a6667ab209dfbfd8b84a6bfb45ee (patch) | |
tree | bbd63ad0f2c9ffecac40b914bc5de8014623b652 /tensorflow/python/platform | |
parent | 3563165fb8328fd0fd6eba88557c25209453339f (diff) |
Removing remove_undocumented calls from tensorflow/python.
PiperOrigin-RevId: 194274698
Diffstat (limited to 'tensorflow/python/platform')
-rw-r--r-- | tensorflow/python/platform/app.py | 9 | ||||
-rw-r--r-- | tensorflow/python/platform/gfile.py | 22 | ||||
-rw-r--r-- | tensorflow/python/platform/resource_loader.py | 5 | ||||
-rw-r--r-- | tensorflow/python/platform/sysconfig.py | 4 | ||||
-rw-r--r-- | tensorflow/python/platform/test.py | 11 | ||||
-rw-r--r-- | tensorflow/python/platform/tf_logging.py | 28 |
6 files changed, 0 insertions, 79 deletions
diff --git a/tensorflow/python/platform/app.py b/tensorflow/python/platform/app.py index cce64c0cca..4c91bc3652 100644 --- a/tensorflow/python/platform/app.py +++ b/tensorflow/python/platform/app.py @@ -22,7 +22,6 @@ import errno as _errno import sys as _sys from tensorflow.python.platform import flags -from tensorflow.python.util.all_util import remove_undocumented from tensorflow.python.util.tf_export import tf_export @@ -125,11 +124,3 @@ def run(main=None, argv=None): # to the final program. _sys.exit(main(argv)) - -_allowed_symbols = [ - 'run', - # Allowed submodule. - 'flags', -] - -remove_undocumented(__name__, _allowed_symbols) diff --git a/tensorflow/python/platform/gfile.py b/tensorflow/python/platform/gfile.py index 315889e9aa..fd697d70bf 100644 --- a/tensorflow/python/platform/gfile.py +++ b/tensorflow/python/platform/gfile.py @@ -33,7 +33,6 @@ 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.all_util import remove_undocumented from tensorflow.python.util.tf_export import tf_export @@ -56,24 +55,3 @@ class FastGFile(_FileIO): # Does not alias to Open so that we use our version of GFile to strip # 'b' mode. Open = GFile - -# TODO(drpng): Find the right place to document these. -_allowed_symbols = [ - 'Copy', - 'DeleteRecursively', - 'Exists', - 'FastGFile', - 'GFile', - 'Glob', - 'IsDirectory', - 'ListDirectory', - 'Open', - 'MakeDirs', - 'MkDir', - 'Remove', - 'Rename', - 'Stat', - 'Walk', -] - -remove_undocumented(__name__, _allowed_symbols) diff --git a/tensorflow/python/platform/resource_loader.py b/tensorflow/python/platform/resource_loader.py index 8f7b12e2b2..650a1fd851 100644 --- a/tensorflow/python/platform/resource_loader.py +++ b/tensorflow/python/platform/resource_loader.py @@ -28,7 +28,6 @@ import os as _os import sys as _sys from tensorflow.python.util import tf_inspect as _inspect -from tensorflow.python.util.all_util import remove_undocumented from tensorflow.python.util.tf_export import tf_export @@ -129,7 +128,3 @@ def get_path_to_datafile(path): def readahead_file_path(path, readahead='128M'): # pylint: disable=unused-argument """Readahead files not implemented; simply returns given path.""" return path - - -_allowed_symbols = [] -remove_undocumented(__name__, _allowed_symbols) diff --git a/tensorflow/python/platform/sysconfig.py b/tensorflow/python/platform/sysconfig.py index fdd2b903fc..56759d1b8e 100644 --- a/tensorflow/python/platform/sysconfig.py +++ b/tensorflow/python/platform/sysconfig.py @@ -28,7 +28,6 @@ import os.path as _os_path from tensorflow.python.framework.versions import CXX11_ABI_FLAG as _CXX11_ABI_FLAG from tensorflow.python.framework.versions import MONOLITHIC_BUILD as _MONOLITHIC_BUILD -from tensorflow.python.util.all_util import remove_undocumented from tensorflow.python.util.tf_export import tf_export @@ -84,6 +83,3 @@ def get_link_flags(): flags.append('-L%s' % get_lib()) flags.append('-ltensorflow_framework') return flags - -_allowed_symbols = [] -remove_undocumented(__name__, _allowed_symbols) diff --git a/tensorflow/python/platform/test.py b/tensorflow/python/platform/test.py index 1660791feb..0a0fe68be5 100644 --- a/tensorflow/python/platform/test.py +++ b/tensorflow/python/platform/test.py @@ -42,7 +42,6 @@ from __future__ import print_function # pylint: disable=g-bad-import-order from tensorflow.python.framework import test_util as _test_util from tensorflow.python.platform import googletest as _googletest -from tensorflow.python.util.all_util import remove_undocumented # pylint: disable=unused-import from tensorflow.python.framework.test_util import assert_equal_graph_def @@ -108,13 +107,3 @@ def test_src_dir_path(relative_path): def is_built_with_cuda(): """Returns whether TensorFlow was built with CUDA (GPU) support.""" return _test_util.IsGoogleCudaEnabled() - - -_allowed_symbols = [ - # We piggy-back googletest documentation. - 'Benchmark', - 'mock', - 'StubOutForTesting', -] - -remove_undocumented(__name__, _allowed_symbols) diff --git a/tensorflow/python/platform/tf_logging.py b/tensorflow/python/platform/tf_logging.py index 22aabfd712..5962d2f220 100644 --- a/tensorflow/python/platform/tf_logging.py +++ b/tensorflow/python/platform/tf_logging.py @@ -34,7 +34,6 @@ import threading import six -from tensorflow.python.util.all_util import remove_undocumented from tensorflow.python.util.tf_export import tf_export @@ -287,35 +286,8 @@ def _get_thread_id(): _log_prefix = google2_log_prefix -# Controls which methods from pyglib.logging are available within the project. -# Do not add methods here without also adding to platform/tf_logging.py. -_allowed_symbols = [ - 'DEBUG', - 'ERROR', - 'FATAL', - 'INFO', - 'TaskLevelStatusMessage', - 'WARN', - 'debug', - 'error', - 'fatal', - 'flush', - 'get_verbosity', - 'info', - 'log', - 'log_if', - 'log_every_n', - 'log_first_n', - 'set_verbosity', - 'vlog', - 'warn', - 'warning', -] - tf_export('logging.DEBUG').export_constant(__name__, 'DEBUG') tf_export('logging.ERROR').export_constant(__name__, 'ERROR') tf_export('logging.FATAL').export_constant(__name__, 'FATAL') tf_export('logging.INFO').export_constant(__name__, 'INFO') tf_export('logging.WARN').export_constant(__name__, 'WARN') - -remove_undocumented(__name__, _allowed_symbols) |