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

P75公式和P76代码疑似出错 #1

Open
kaseketsu opened this issue Jul 17, 2024 · 1 comment
Open

P75公式和P76代码疑似出错 #1

kaseketsu opened this issue Jul 17, 2024 · 1 comment

Comments

@kaseketsu
Copy link

GRU的隐状态更新代码理应是:hidden_state = U * H_tilda + (1 - U) * hidden_state
而非书中的hidden_state = (1 - U) * H_tilda + U * hidden_state

@Atomu2014
Copy link
Collaborator

经检查,确实存在书中公式与代码不一致的情况,我们会在后续更改。

不过在实践中,这两种写法没有区别,U与(1-U)是等价的。

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