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

Method __init__

tensorflow/python/eager/wrap_function.py:431–442  ·  view source on GitHub ↗
(self, variable_holder=None, **kwargs)

Source from the content-addressed store, hash-verified

429 """
430
431 def __init__(self, variable_holder=None, **kwargs):
432 self._variable_holder = (
433 variable_holder or VariableHolder(share_variables=True))
434
435 name = kwargs.pop("name", "wrapped_function_graph")
436 # Always start with empty collections, unless otherwise specified. Setting
437 # `collections=None` will copy the collections from the outer graph.
438 collections = kwargs.pop("collections", {})
439 self.graph = func_graph.FuncGraph(name, collections=collections, **kwargs)
440
441 self._wrapped_function = WrappedFunction(self.graph, self._variable_holder)
442 self._functions = {}
443
444 @property
445 def functions(self):

Callers 1

__init__Method · 0.45

Calls 3

VariableHolderClass · 0.85
WrappedFunctionClass · 0.85
popMethod · 0.45

Tested by

no test coverage detected