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:458–459 ·
view source on GitHub ↗
(self)
Source
from the content-addressed store, hash-verified
456
return
hasattr(torch._C,
"_current_graph_task_id"
)
457
458
def
new_state(self):
459
return
_EngineBackwardGraphState()
460
461
@staticmethod
462
def
_clear_current_context(state):
Callers
1
backward
Method · 0.80
Calls
1
_EngineBackwardGraphState
Class · 0.85
Tested by
no test coverage detected