MCPcopy Create free account
hub / github.com/DeepRec-AI/DeepRec / _is_private

Method _is_private

tensorflow/tools/common/public_api.py:105–112  ·  view source on GitHub ↗

Return whether a name is private.

(self, path, name, obj=None)

Source from the content-addressed store, hash-verified

103 self._root_name = root_name
104
105 def _is_private(self, path, name, obj=None):
106 """Return whether a name is private."""
107 # TODO(wicke): Find out what names to exclude.
108 del obj # Unused.
109 return ((path in self._private_map and
110 name in self._private_map[path]) or
111 (name.startswith('_') and not re.match('__.*__$', name) or
112 name in ['__base__', '__class__']))
113
114 def _do_not_descend(self, path, name):
115 """Safely queries if a specific fully qualified name should be excluded."""

Callers 1

__call__Method · 0.95

Calls 1

matchMethod · 0.45

Tested by

no test coverage detected