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

Method target_ini

examples/reinforcement_learning/tutorial_SAC.py:261–265  ·  view source on GitHub ↗

hard-copy update for initializing target networks

(self, net, target_net)

Source from the content-addressed store, hash-verified

259 self.alpha_optimizer = tf.optimizers.Adam(ALPHA_LR)
260
261 def target_ini(self, net, target_net):
262 """ hard-copy update for initializing target networks """
263 for target_param, param in zip(target_net.trainable_weights, net.trainable_weights):
264 target_param.assign(param)
265 return target_net
266
267 def target_soft_update(self, net, target_net, soft_tau):
268 """ soft update the target net with Polyak averaging """

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected