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

Method load

examples/reinforcement_learning/tutorial_C51.py:262–265  ·  view source on GitHub ↗
(self, path)

Source from the content-addressed store, hash-verified

260 tl.files.save_weights_to_hdf5(os.path.join(path, 'q_net.hdf5'), self.qnet)
261
262 def load(self, path):
263 if path is None:
264 path = os.path.join('model', '_'.join([alg_name, env_id]))
265 tl.files.load_hdf5_to_weights_in_order(os.path.join(path, 'q_net.hdf5'), self.qnet)
266
267 @tf.function
268 def _train_func(self, b_o, b_index, b_m):

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected