load trained weights :return: None
(self)
| 340 | tl.files.save_weights_to_hdf5(os.path.join(path, 'critic.hdf5'), self.critic) |
| 341 | |
| 342 | def load(self): |
| 343 | """ |
| 344 | load trained weights |
| 345 | :return: None |
| 346 | """ |
| 347 | path = os.path.join('model', '_'.join([ALG_NAME, ENV_ID])) |
| 348 | tl.files.load_hdf5_to_weights_in_order(os.path.join(path, 'actor.hdf5'), self.actor) |
| 349 | tl.files.load_hdf5_to_weights_in_order(os.path.join(path, 'critic.hdf5'), self.critic) |
| 350 | |
| 351 | def cg(self, Ax, b): |
| 352 | """ |