MCPcopy 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
73def _setstate(self, state_dict):
74 self.__init__(state_dict["device"])
75 self.set_state(state_dict["state"])
76
77
78def get_rng_state():

Callers

nothing calls this directly

Calls 2

__init__Method · 0.45
set_stateMethod · 0.45

Tested by

no test coverage detected