Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Oneflow-Inc/oneflow
/ _setstate
Function
_setstate
python/oneflow/framework/generator.py:73–75 ·
view source on GitHub ↗
(self, state_dict)
Source
from the content-addressed store, hash-verified
71
72
73
def
_setstate(self, state_dict):
74
self.__init__(state_dict[
"device"
])
75
self.set_state(state_dict[
"state"
])
76
77
78
def
get_rng_state():
Callers
nothing calls this directly
Calls
2
__init__
Method · 0.45
set_state
Method · 0.45
Tested by
no test coverage detected