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

the use of MultiRNNCell? #7604

Closed
liuyichaosoftware opened this issue Feb 17, 2017 · 7 comments
Closed

the use of MultiRNNCell? #7604

liuyichaosoftware opened this issue Feb 17, 2017 · 7 comments
Assignees
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower type:docs-bug Document issues

Comments

@liuyichaosoftware
Copy link

doc is in https://www.tensorflow.org/tutorials/recurrent

I found the line
stacked_lstm = tf.contrib.rnn.MultiRNNCell([lstm] * number_of_layers,

I need to use MultiRNNCell

but,I write those lines

a = [tf.nn.rnn_cell.BasicLSTMCell(10)]*3

print id(a[0]), id(a[1])

Its output is 4648063696 4648063696

can MultiRNNCell use the same object BasicLSTMCell as a list for parameter?

@carlthome
Copy link
Contributor

carlthome commented Feb 17, 2017

can MultiRNNCell use the same object BasicLSTMCell as a list for parameter?

Yes, you'll get separate trainable weights by repeating the list like you're doing. It's a bit confusing to be honest. You should have asked this here or on StackOverflow though.

@aselle
Copy link
Contributor

aselle commented Feb 17, 2017

@ebrevdo, do you think we should change the docs in some way to make it clearer?

@aselle aselle added type:docs-bug Document issues stat:awaiting tensorflower Status - Awaiting response from tensorflower labels Feb 17, 2017
@ebrevdo
Copy link
Contributor

ebrevdo commented Feb 17, 2017 via email

@liuyichaosoftware
Copy link
Author

thank you very much ~

@carlthome
Copy link
Contributor

Don't forget to close your issue @liuyichaosoftware. 👍

@tifoit
Copy link

tifoit commented May 18, 2017

Tensorflow 0.9 to 1.0.1 is a big jump. A lot changed.
Details: https://github.com/tensorflow/tensorflow/blob/master/RELEASE.md

In tf 1.0.0, the API has been changed such as:

tf.nn.seq2seq.sequence_loss_by_example
to
tf.contrib.legacy_seq2seq.sequence_loss_by_example

tf.nn.rnn_cell.
to
tf.contrib.rnn.

tf.nn.rnn_cell.MultiRNNCell(
to
tf.contrib.rnn.MultiRNNCell(

...

@lonway
Copy link

lonway commented Jun 27, 2017

How to find the API map between the old and new version @tifoit

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
stat:awaiting tensorflower Status - Awaiting response from tensorflower type:docs-bug Document issues
Projects
None yet
Development

No branches or pull requests

6 participants