Skip to content

Commit

Permalink
commit
Browse files Browse the repository at this point in the history
  • Loading branch information
MickyasTA committed Apr 26, 2024
1 parent 0d4113b commit c0141ca
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Agent_Actor_Critic.py
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ def learn(self,state,reward,state_,done,):
critic_loss=delta**2 # we calculate the critic loss
total_loss= actor_loss+critic_loss

gradient=total_loss.backward() # we backpropagate the gradients
total_loss.backward() # we backpropagate the gradients
self.actor_critic.optimizer.step() # we update the weights of the network


0 comments on commit c0141ca

Please sign in to comment.