(self)
| 2679 | self._cache = cache |
| 2680 | |
| 2681 | def __del__(self): |
| 2682 | if func_graph_module is None or memory is None: |
| 2683 | return |
| 2684 | try: |
| 2685 | while self._cache: |
| 2686 | self._cache.popitem() |
| 2687 | memory.dismantle_ordered_dict(self._cache) |
| 2688 | except: # pylint: disable=bare-except |
| 2689 | pass |
| 2690 | |
| 2691 | |
| 2692 | class ConcreteFunctionGarbageCollector(object): |