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 the weight norm #1

Closed
zimenglan-sysu-512 opened this issue Jan 23, 2018 · 2 comments
Closed

about the weight norm #1

zimenglan-sysu-512 opened this issue Jan 23, 2018 · 2 comments

Comments

@zimenglan-sysu-512
Copy link

hi @happynear,
i read the code of innerproduct, find that, you only norm the weights in the forward pass. so why it does not need corresponding bp?

thanks.

@happynear
Copy link
Owner

Because we directly change the weights in the forward propagation. We find the performance is similar with calculating the gradients of the normalization, and it looks much clearer.

You may also try a more correct way as in https://github.com/happynear/NormFace/blob/master/prototxt/combine_softmax_contrastive.prototxt .

@zimenglan-sysu-512
Copy link
Author

thanks.

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