MCPcopy Index your code
hub / github.com/OpenDriveLab/DriveAdapter / save

Method save

roach/models/ppo.py:270–274  ·  view source on GitHub ↗
(self, path: str)

Source from the content-addressed store, hash-verified

268 return init_kwargs
269
270 def save(self, path: str) -> None:
271 th.save({'policy_state_dict': self.policy.state_dict(),
272 'policy_init_kwargs': self.policy.get_init_kwargs(),
273 'train_init_kwargs': self._get_init_kwargs()},
274 path)
275
276 def get_env(self):
277 return self.env

Callers 2

__init__Method · 0.45
_on_training_endMethod · 0.45

Calls 2

_get_init_kwargsMethod · 0.95
get_init_kwargsMethod · 0.80

Tested by

no test coverage detected