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

uw initialization #18

Closed
antct opened this issue Oct 22, 2022 · 2 comments
Closed

uw initialization #18

antct opened this issue Oct 22, 2022 · 2 comments

Comments

@antct
Copy link

antct commented Oct 22, 2022

Hi, I found that the value -0.5 was used when initializing the parameter in line 19 of uw.py.
My doubt is why this value is not 0, since the variable loss_scale is equivalent to log \sigma in the original paper.

self.loss_scale = nn.Parameter(torch.tensor([-0.5]*self.task_num, device=self.device))
@Baijiong-Lin
Copy link
Collaborator

The initialization here refers to mtan. I think you can also use zero initialization.

@antct
Copy link
Author

antct commented Oct 22, 2022

Thanks for your reply~

@antct antct closed this as completed Oct 22, 2022
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