Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
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.py
File · 0.45
_test
Function · 0.45
run
Method · 0.45
Calls
no outgoing calls
Tested by
1
_test
Function · 0.36