Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/lazyprogrammer/machine_learning_examples
/ load_weights
Method
load_weights
pytorch/rl_trader.py:109–110 ·
view source on GitHub ↗
(self, path)
Source
from the content-addressed store, hash-verified
107
torch.save(self.state_dict(), path)
108
109
def
load_weights(self, path):
110
self.load_state_dict(torch.load(path))
111
112
113
Callers
3
load
Method · 0.45
load
Method · 0.45
load
Method · 0.45
Calls
1
load
Method · 0.45
Tested by
no test coverage detected