(self, root)
| 83 | """ |
| 84 | |
| 85 | def __init__(self, root): |
| 86 | if (not context.executing_eagerly() |
| 87 | and not ops.inside_function()): |
| 88 | saveables_cache = object_identity.ObjectIdentityWeakKeyDictionary() |
| 89 | else: |
| 90 | saveables_cache = None |
| 91 | super(_AugmentedGraphView, self).__init__(root, saveables_cache) |
| 92 | # Object -> (name -> dep) |
| 93 | self._extra_dependencies = object_identity.ObjectIdentityDictionary() |
| 94 | self._functions = object_identity.ObjectIdentityDictionary() |
| 95 | # Cache shared between objects in the same object graph. This is passed to |
| 96 | # each trackable object's `_list_extra_dependencies_for_serialization` and |
| 97 | # `_list_functions_for_serialization` function. |
| 98 | self._serialization_cache = object_identity.ObjectIdentityDictionary() |
| 99 | |
| 100 | def add_object(self, parent_node, name_in_parent, subgraph_root): |
| 101 | """Attach an object to `parent_node`, overriding any existing dependency.""" |
nothing calls this directly
no test coverage detected