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 in Stacked LSTM #1169

Open
varunkumar3618 opened this issue Dec 1, 2016 · 1 comment
Open

Initialization in Stacked LSTM #1169

varunkumar3618 opened this issue Dec 1, 2016 · 1 comment

Comments

@varunkumar3618
Copy link

I am trying to build a stacked LSTM model and have having trouble initializing the weights of the intermediate transformations. My code looks like this:
cells = [LSTM(dim=self._hidden_size, weights_init=initialization.Identity())]
stack = RecurrentStack(transitions=transitions, weights_init=wi, biases_init=bi)

It seems that the only initializer accepted by RecurrentStack is Constant. If I pass in Identity or IsotropicGaussian, the code allocating weights throws a ValueError when it notices that the incoming state is a hidden state-cell state pair and not a matrix.

It would be extremely helpful if you could modify the interface to allow arbitrary initializations or let me know how to work around this restriction. Thanks!

@rizar
Copy link
Contributor

rizar commented Jan 2, 2017 via email

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