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

Bi-Directional LSTM #9

Closed
shoaibahmed opened this issue Dec 29, 2015 · 4 comments
Closed

Bi-Directional LSTM #9

shoaibahmed opened this issue Dec 29, 2015 · 4 comments

Comments

@shoaibahmed
Copy link

Thanks for sharing this valuable resource. The recurrent network example was very useful to me for sequence classification.
Can you pl add a new example which is same as recurrent_network.py but uses Bi-Directional LSTM instead of uni-directional. That will be very useful for me.
Thanks once again.

@aymericdamien
Copy link
Owner

@shoaibahmed
Copy link
Author

I wrote the same code. Thanks.
There is one correction on line 59 (bidirectional_rnn.py):
_seq_len = tf.fill([_batch_size], constant(_seq_len, dtype=tf.int64))
tf is missing as it should be tf.constant.

@aymericdamien
Copy link
Owner

Ok! I close the issue then.
About tf.constant, I directly import constant at line: "from tensorflow.python.ops.constant_op import constant", but I agree that using tf.constant directly would be less confusing.

@shoaibahmed
Copy link
Author

Can you pl also guide regarding how to port this Bi-Directional LSTM model on Android?

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