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

Attempt to have a second RNNCell use the weights of a variable scope that already has weights #2

Closed
flsd201983 opened this issue May 30, 2017 · 1 comment

Comments

@flsd201983
Copy link

I got a problem, how can I solve it?

Attempt to have a second RNNCell use the weights of a variable scope that already has weights: 'rnnftxt/rnn/dynamic/rnn/basic_lstm_cell'; and the cell was not constructed as BasicLSTMCell(..., reuse=True). To share the weights of an RNNCell, simply reuse it in your second calculation, or create a new one with the argument reuse=True.

@zsdonghao
Copy link
Owner

simply add cell_init_args = {'state_is_tuple' : True, 'reuse': reuse} into DynamicRNNLayer if you are using TF1.1

@zsdonghao zsdonghao changed the title Some problem Attempt to have a second RNNCell use the weights of a variable scope that already has weights Jul 16, 2017
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