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

[basic_cell]*num_layers is really what you want? #61

Open
aodiwei opened this issue Mar 16, 2018 · 0 comments
Open

[basic_cell]*num_layers is really what you want? #61

aodiwei opened this issue Mar 16, 2018 · 0 comments

Comments

@aodiwei
Copy link

aodiwei commented Mar 16, 2018

Hi, I am confuse on [basic_cell]*num_layers in code:
stacked_lstm = tf.contrib.rnn.core_rnn_cell.MultiRNNCell([basic_cell]*num_layers, state_is_tuple=True)
This means copy num_layers same cell instances.
for multi lstm, should we use diff cell instances like:

cell = []
for i in range(num_layers):
    cell.append(tf.contrib.rnn.LSTMCell(hidden, state_is_tuple=True))
cell = tf.contrib.rnn.MultiRNNCell(cell,state_is_tuple=True)

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