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

Initialization of the hidden state and the memory cell #368

Open
shuaitang opened this issue May 27, 2017 · 2 comments
Open

Initialization of the hidden state and the memory cell #368

shuaitang opened this issue May 27, 2017 · 2 comments

Comments

@shuaitang
Copy link

Hi all,

I have been using cudnn.torch binding for cudnn-rnn for quite a long time, and an issue confused me a lot.

when I set the input sequence to be input = torch.zeros(1,5,1), and pass it thru the cudnn.GRU module, the outputs are not a bunch of 0s, which should be if the initialization of the hidden state is 0 at the very beginning.

Any thoughts about the issue?

Thank you!

@guillaumekln
Copy link

Hi,

The biases are most certainly non zero.

@shuaitang
Copy link
Author

Thank you for answering my question!

But I also tried to set the bias to zeros, and then forward the cudnn.GRU module with all-zero input, the results are still non-zero.

Any thoughts?

Thank you!

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