Skip to content

Commit 94e39ab

Browse files
Update td3.py
1 parent e019fe1 commit 94e39ab

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

td3.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -294,7 +294,7 @@ def update(self, batch_size, deterministic, eval_noise_scale, reward_scale=10.,
294294
self.q_optimizer2.step()
295295

296296
if self.update_cnt%self.policy_target_update_interval==0:
297-
297+
# This is the **Delayed** update of policy and all targets (for Q and policy).
298298
# Training Policy Function
299299
''' implementation 1 '''
300300
# predicted_new_q_value = torch.min(self.q_net1(state, new_action),self.q_net2(state, new_action))

0 commit comments

Comments
 (0)