Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/deepspeedai/DeepSpeed
/ new_state
Method
new_state
deepspeed/runtime/engine.py:459–460 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
457
return
hasattr(torch._C,
"_current_graph_task_id"
)
458
459
def
new_state(self):
460
return
_EngineBackwardGraphState()
461
462
@staticmethod
463
def
_clear_current_context(state):
Callers
1
backward
Method · 0.80
Calls
1
_EngineBackwardGraphState
Class · 0.85
Tested by
no test coverage detected