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

Method __init__

tensorflow/python/saved_model/save.py:85–98  ·  view source on GitHub ↗
(self, root)

Source from the content-addressed store, hash-verified

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."""

Callers

nothing calls this directly

Calls 2

executing_eagerlyMethod · 0.80
__init__Method · 0.45

Tested by

no test coverage detected