MCPcopy Index your code
hub / github.com/tensorlayer/TensorLayer / load

Method load

examples/reinforcement_learning/tutorial_TRPO.py:342–349  ·  view source on GitHub ↗

load trained weights :return: None

(self)

Source from the content-addressed store, hash-verified

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 """

Callers 1

tutorial_TRPO.pyFile · 0.45

Calls

no outgoing calls

Tested by

no test coverage detected