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

Why sync grad only when grad in None #3

Open
luochao1024 opened this issue Sep 5, 2018 · 1 comment
Open

Why sync grad only when grad in None #3

luochao1024 opened this issue Sep 5, 2018 · 1 comment

Comments

@luochao1024
Copy link

The shared_param.grad is synced only when it is None here https://github.com/greydanus/baby-a3c/blob/master/baby-a3c.py#L159. I am kind of confused. I think we have to sync it without the condition above. That means we have to sync it whenever the local model calculates a grad. Is it auto synced somewhere? Thank you for your time

@QasimWani
Copy link

i think it gets synched in A2C when all parallel agents calculate their V(s) and π(a|s), no?

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