Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

About total_loss = (a_loss + c_losss).mean() #18

Open
KGBUSH opened this issue Jul 17, 2020 · 1 comment
Open

About total_loss = (a_loss + c_losss).mean() #18

KGBUSH opened this issue Jul 17, 2020 · 1 comment

Comments

@KGBUSH
Copy link

KGBUSH commented Jul 17, 2020

I suppose in the paper, authors maybe calculate the loss for actor and critics respectively. I was wondering it really works better when you do "total_loss = (a_loss + c_losss).mean()" in the loss_func()?

Thanks

@jakkarn
Copy link

jakkarn commented May 4, 2021

The sum of gradients is the same as gradients of the sum.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants