MCPcopy Create free account
hub / github.com/YeWR/EfficientZero / set_weights

Method set_weights

core/model.py:118–119  ·  view source on GitHub ↗
(self, weights)

Source from the content-addressed store, hash-verified

116 return {k: v.cpu() for k, v in self.state_dict().items()}
117
118 def set_weights(self, weights):
119 self.load_state_dict(weights)
120
121 def get_gradients(self):
122 grads = []

Callers 3

main.pyFile · 0.45
_testFunction · 0.45
runMethod · 0.45

Calls

no outgoing calls

Tested by 1

_testFunction · 0.36