diff options
author | Mark Daoust <markdaoust@google.com> | 2017-09-22 10:32:13 -0700 |
---|---|---|
committer | TensorFlower Gardener <gardener@tensorflow.org> | 2017-09-22 10:36:12 -0700 |
commit | f69e32f2e4e544ee29cbfccfd448341c01fe1355 (patch) | |
tree | 51a2adbd76afbf7f7f8472099e7f4adbc47d83aa /tensorflow/contrib/meta_graph_transform | |
parent | a1a5ed233ccbc05250020b3518f8405b32d6822e (diff) |
Hide "re" from the docs system.
PiperOrigin-RevId: 169706174
Diffstat (limited to 'tensorflow/contrib/meta_graph_transform')
-rw-r--r-- | tensorflow/contrib/meta_graph_transform/meta_graph_transform.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tensorflow/contrib/meta_graph_transform/meta_graph_transform.py b/tensorflow/contrib/meta_graph_transform/meta_graph_transform.py index f914391ecc..ff4afbb4ce 100644 --- a/tensorflow/contrib/meta_graph_transform/meta_graph_transform.py +++ b/tensorflow/contrib/meta_graph_transform/meta_graph_transform.py @@ -20,7 +20,7 @@ from __future__ import division from __future__ import print_function -import re +import re as _re from tensorflow.core.framework import graph_pb2 as _graph_pb2 from tensorflow.core.protobuf import meta_graph_pb2 as _meta_graph_pb2 @@ -644,7 +644,7 @@ def _is_removed_mentioned(s, removed_op_names): # /foo/bar. This regex ensures that we handle these two nodes # as separate entities. It matches on nodes having names in the form of # '/foo/bar_x' as well as nodes having names in the form of 'foo.' - s_names = re.findall(r'((?:[\/]?[a-zA-Z0-9\_]*)*)', compat.as_str_any(s)) + s_names = _re.findall(r'((?:[\/]?[a-zA-Z0-9\_]*)*)', compat.as_str_any(s)) for removed_op_name in removed_op_names: for s_name in s_names: if s_name.endswith(removed_op_name): |