Skip to content

Adapting to the API Changes in latest release 0.12.1!#134

Open
ranagwho wants to merge 1 commit intoConchylicultor:masterfrom
ranagwho:patch-1
Open

Adapting to the API Changes in latest release 0.12.1!#134
ranagwho wants to merge 1 commit intoConchylicultor:masterfrom
ranagwho:patch-1

Conversation

@ranagwho
Copy link
Copy Markdown

@ranagwho ranagwho commented Jul 20, 2017

Resolving the attribute errors occurring in "model.py" due to API changes (Missing RNN module) in latest Tensorflow release (0.12.1)

tf.contrib.legacy_seq2seq --> tf.nn.rnn_cell.seq2seq
tf.nn.rnn_ce.DropoutWrapper --> tf.nn.rnn_cell.DropoutWrapper
tf.contrib.rnn.MultiRNNCell --> tf.nn.rnn_cell.MultiRNNCell 

...

Resolving the attribute errors occurring in "model.py" due to API changes (Missing RNN module) in latest Tensorflow release (0.12.1)

tf.contrib.legacy_seq2seq --> tf.nn.rnn_cell.seq2seq
tf.nn.rnn_ce.DropoutWrapper --> tf.nn.rnn_cell.DropoutWrapper
tf.contrib.rnn.MultiRNNCell --> tf.nn.rnn_cell.MultiRNNCell 
...
@faizalzakaria
Copy link
Copy Markdown

Works for me. Thanks.

@pkluber
Copy link
Copy Markdown

pkluber commented Dec 5, 2017

Looks good. Since the tf.contrib package may change in future updates, using the tf.nn package is more reliable.

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

Successfully merging this pull request may close these issues.

3 participants