(self, variable_holder=None, **kwargs)
| 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): |
no test coverage detected