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

Function enable

tests/unit/runtime/test_python_gc.py:31–34  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

29 calls.append("disable")
30
31 def enable():
32 nonlocal enabled
33 enabled = True
34 calls.append("enable")
35
36 monkeypatch.setattr("deepspeed.runtime.python_gc.gc.isenabled", isenabled)
37 monkeypatch.setattr("deepspeed.runtime.python_gc.gc.collect", collect)

Callers

nothing calls this directly

Calls 1

appendMethod · 0.80

Tested by

no test coverage detected