MCPcopy Create free account
hub / github.com/lazyprogrammer/machine_learning_examples / save_weights

Method save_weights

pytorch/rl_trader.py:106–107  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

104 return self.layers(X)
105
106 def save_weights(self, path):
107 torch.save(self.state_dict(), path)
108
109 def load_weights(self, path):
110 self.load_state_dict(torch.load(path))

Callers 3

saveMethod · 0.45
saveMethod · 0.45
saveMethod · 0.45

Calls 1

saveMethod · 0.45

Tested by

no test coverage detected