diff options
author | Martin Wicke <wicke@google.com> | 2017-02-10 00:18:29 -0800 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-02-10 00:26:34 -0800 |
commit | a70c4b5dbaba28124653a8886622f986cf03b293 (patch) | |
tree | 4eb5924975a5ec2c98dc44166a69cd2e3e87af47 /tensorflow/tools/common | |
parent | f7c13811f013b9a570a3d395ed4605a298a57fe6 (diff) |
Exclude flags module from the public API.
Change: 147127454
Diffstat (limited to 'tensorflow/tools/common')
-rw-r--r-- | tensorflow/tools/common/public_api.py | 10 |
1 files changed, 8 insertions, 2 deletions
diff --git a/tensorflow/tools/common/public_api.py b/tensorflow/tools/common/public_api.py index 7e62346ecc..5c32bd12c3 100644 --- a/tensorflow/tools/common/public_api.py +++ b/tensorflow/tools/common/public_api.py @@ -39,8 +39,14 @@ class PublicAPIVisitor(object): # sytem modules exposed through platforms for compatibility reasons. # Each entry maps a module path to a name to ignore in traversal. _do_not_descend_map = { - # TODO(drpng): This can be removed once sealed off. - '': ['platform', 'pywrap_tensorflow', 'user_ops', 'python', 'tools'], + '': [ + 'flags', # Don't add flags + 'platform', # TODO(drpng): This can be removed once sealed off. + 'pywrap_tensorflow', # TODO(drpng): This can be removed once sealed. + 'user_ops', # TODO(drpng): This can be removed once sealed. + 'python', + 'tools' + ], # Exclude protos, they leak a lot. 'core': ['protobuf'], |