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

gru章节代码是否有误 #88

Closed
orangerfun opened this issue Jan 11, 2020 · 1 comment
Closed

gru章节代码是否有误 #88

orangerfun opened this issue Jan 11, 2020 · 1 comment

Comments

@orangerfun
Copy link

gru 在定义模型函数里

H_tilda = torch.tanh(torch.matmul(X, W_xh) + R *torch.matmul(H, W_hh) + b_h)

应该改成:

H_tilda = torch.tanh(torch.matmul(X, W_xh) + torch.matmul((R*H), W_hh) + b_h)
ShusenTang added a commit that referenced this issue Jan 11, 2020
@ShusenTang
Copy link
Owner

你说得对,感谢提醒,已更正。

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