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 do some Linear layers have bias set to False? #6

Closed
varshanth opened this issue Jul 5, 2021 · 1 comment
Closed

Why do some Linear layers have bias set to False? #6

varshanth opened this issue Jul 5, 2021 · 1 comment

Comments

@varshanth
Copy link

Hi,

Thanks for your code and congrats on the paper accept. I was going through your code and your model definition. I have 2 enquiries:

  1. Why do some Linear layers have bias set to False?
  2. You init linear layers with Xavier Uniform initialization. Does initialization with other methods influence your result?

Thanks!

@jasongief
Copy link
Owner

Hi, thanks for your attention to these details.

  1. The linear layers defined in the PSP aim to perform a linear transformation to the audio or visual feature, we just opt to implement it by a matrix multiplication without adding bias, you may try to set the bias to True and I guess the result is competitive to (or may be lower than) current setup.
  2. I am afraid that different initialization methods would have some influence on the model training. Obviously, a good initialization method would help to achieve the optimal situation.

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