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

Shared local and global parameters #31

Open
mfl22 opened this issue Mar 26, 2024 · 0 comments
Open

Shared local and global parameters #31

mfl22 opened this issue Mar 26, 2024 · 0 comments

Comments

@mfl22
Copy link

mfl22 commented Mar 26, 2024

Shouldn't parameters of local and global networks be synchronized:

self.lnet = Net(N_S, N_A) # local network

lnet and gnet are not initialized with the same parameters here ? Probably lnet.load_state_dict(gnet.state_dict()) is missing.

For example, see implementation in https://github.com/ikostrikov/pytorch-a3c/blob/48d95844755e2c3e2c7e48bbd1a7141f7212b63f/train.py#L37.

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

1 participant