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

Weight sharing #62

Open
omg777 opened this issue Aug 23, 2018 · 0 comments
Open

Weight sharing #62

omg777 opened this issue Aug 23, 2018 · 0 comments

Comments

@omg777
Copy link

omg777 commented Aug 23, 2018

Hi,
Can you explain why multiply 0.5 from gradient ?

    # Average the gradients
    for p in D_shared.parameters():
        p.grad.data = 0.5 * p.grad.data

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