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

Method __del__

tensorflow/python/eager/function.py:2681–2689  ·  view source on GitHub ↗
(self)

Source from the content-addressed store, hash-verified

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
2692class ConcreteFunctionGarbageCollector(object):

Callers

nothing calls this directly

Calls 1

popitemMethod · 0.45

Tested by

no test coverage detected