MCPcopy
hub / github.com/tensorlayer/TensorLayer / load

Method load

examples/reinforcement_learning/tutorial_PPO.py:215–222  ·  view source on GitHub ↗

load trained weights :return: None

(self)

Source from the content-addressed store, hash-verified

213 tl.files.save_weights_to_hdf5(os.path.join(path, 'critic.hdf5'), self.critic)
214
215 def load(self):
216 """
217 load trained weights
218 :return: None
219 """
220 path = os.path.join('model', '_'.join([ALG_NAME, ENV_ID]))
221 tl.files.load_hdf5_to_weights_in_order(os.path.join(path, 'actor.hdf5'), self.actor)
222 tl.files.load_hdf5_to_weights_in_order(os.path.join(path, 'critic.hdf5'), self.critic)
223
224 def store_transition(self, state, action, reward):
225 """

Calls

no outgoing calls

Tested by

no test coverage detected