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

calculate t was wrong #19

Open
Aruen24 opened this issue Jul 1, 2020 · 2 comments
Open

calculate t was wrong #19

Aruen24 opened this issue Jul 1, 2020 · 2 comments

Comments

@Aruen24
Copy link

Aruen24 commented Jul 1, 2020

with torch.no_grad():
self.t = target_logit.mean() * 0.01 + (1 - 0.01) * self.t
but your paper is: t(k) = αr(k) + (1 - α)t(k-1);
where t0 = 0, α is the momentum parameter and set to0.99.

@QuasarLight
Copy link

i got this problem,did you solve that?

@powermano
Copy link

I think the code is right

self.t = target_logit.mean() * 0.01 + (1 - 0.01) * self.t

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

3 participants