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

How should I use rnn_cell.py? #6

Open
yangchangli opened this issue Apr 15, 2019 · 0 comments
Open

How should I use rnn_cell.py? #6

yangchangli opened this issue Apr 15, 2019 · 0 comments

Comments

@yangchangli
Copy link

Hello, I have some questions to ask you.
How should I use rnn_cell.py?
Is it like the normal LSTM() method in TensorFlow?
A
...
Lstm = LSTM(50,return_sequence = False)(input)
...

B
...
From rnn_cell import NLSTMCell
Cell = NLSTMCell(num_units=3, depth=2)
#init_state = cell.zero_state(batch_size, dtype=tf.float32)
Output, new_state = cell(inputs, state=init_state)
...

What is init_state used for?

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