Commit 3366990b authored by Nicola Gatto's avatar Nicola Gatto
Browse files

Only initialize DDPG target when training is not resumed

parent 4ed3b332
Pipeline #149078 failed with stages
in 2 minutes and 12 seconds
......@@ -465,9 +465,9 @@ class DdpgAgent(Agent):
else:
self._training_stats = DdpgTrainingStats(episodes)
# Initialize target Q' and mu'
self._actor_target = self._copy_actor()
self._critic_target = self._copy_critic()
# Initialize target Q' and mu'
self._actor_target = self._copy_actor()
self._critic_target = self._copy_critic()
# Initialize l2 loss for critic network
l2_loss = gluon.loss.L2Loss()
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment