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

Method collect_python_gc

deepspeed/runtime/engine.py:1358–1361  ·  view source on GitHub ↗

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

(self)

Source from the content-addressed store, hash-verified

1356 self._python_gc_generation = None
1357
1358 def collect_python_gc(self):
1359 """Run Python cyclic GC at an application-selected safe boundary."""
1360 from deepspeed.runtime.python_gc import python_gc_manager
1361 return python_gc_manager.collect()
1362
1363 def _configure_python_gc(self):
1364 if self._config.disable_python_gc:

Callers

nothing calls this directly

Calls 1

collectMethod · 0.80

Tested by

no test coverage detected