Run Python cyclic GC at an application-selected safe boundary.
(self)
| 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: |