mirror of
https://github.com/wassname/curl.git
synced 2026-09-09 11:20:39 +08:00
edits
This commit is contained in:
@@ -482,6 +482,11 @@ class CurlSacAgent(object):
|
||||
self.critic.state_dict(), '%s/critic_%s.pt' % (model_dir, step)
|
||||
)
|
||||
|
||||
def save_curl(self, model_dir, step):
|
||||
torch.save(
|
||||
self.CURL.state_dict(), '%s/curl_%s.pt' % (model_dir, step)
|
||||
)
|
||||
|
||||
def load(self, model_dir, step):
|
||||
self.actor.load_state_dict(
|
||||
torch.load('%s/actor_%s.pt' % (model_dir, step))
|
||||
|
||||
Submodule
+1
Submodule dmc2gym added at da8b46354e
Reference in New Issue
Block a user