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

Method target_ini

examples/reinforcement_learning/tutorial_TD3.py:248–252  ·  view source on GitHub ↗

hard-copy update for initializing target networks

(self, net, target_net)

Source from the content-addressed store, hash-verified

246 self.policy_optimizer = tf.optimizers.Adam(policy_lr)
247
248 def target_ini(self, net, target_net):
249 """ hard-copy update for initializing target networks """
250 for target_param, param in zip(target_net.trainable_weights, net.trainable_weights):
251 target_param.assign(param)
252 return target_net
253
254 def target_soft_update(self, net, target_net, soft_tau):
255 """ soft update the target net with Polyak averaging """

Callers 1

__init__Method · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected