MCPcopy Create free account
hub / github.com/deepspeedai/DeepSpeed / collect_python_gc

Method collect_python_gc

deepspeed/runtime/engine.py:1386–1389  ·  view source on GitHub ↗

Run Python cyclic GC at an application-selected safe boundary.

(self)

Source from the content-addressed store, hash-verified

1384 self._python_gc_generation = None
1385
1386 def collect_python_gc(self):
1387 """Run Python cyclic GC at an application-selected safe boundary."""
1388 from deepspeed.runtime.python_gc import python_gc_manager
1389 return python_gc_manager.collect()
1390
1391 def _configure_python_gc(self):
1392 if self._config.disable_python_gc:

Callers

nothing calls this directly

Calls 1

collectMethod · 0.80

Tested by

no test coverage detected