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

Funky GRU #20

Open
szcom opened this issue Nov 27, 2017 · 0 comments
Open

Funky GRU #20

szcom opened this issue Nov 27, 2017 · 0 comments

Comments

@szcom
Copy link

szcom commented Nov 27, 2017

GRUStep in lib/ops.py does implement a bit untraditional GRU unit:
https://github.com/soroushmehr/sampleRNN_ICLR2017/blob/master/lib/ops.py#L372

return (update * candidate) + ((one - update) * last_hidden)

which is supposed to return GRU as we know:
S_t = (1 - z).h + z.S_{t-1}

Instead the code does:
S_t = (1 - z).S_{t-1} + z.h

Logically it seems not too far from the original variant except z is inverted.
But in practice does it affect any figures presented in the paper?

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

1 participant