I am using TensorFlow version=2.0.0 python version=3.7.3 I am trying to import the below statement
from tensorflow.contrib import rnn
And it gives error as Module 'tensorflow' has no attribute 'contrib' How can I resolve this?
I am using TensorFlow version=2.0.0 python version=3.7.3 I am trying to import the below statement
from tensorflow.contrib import rnn
And it gives error as Module 'tensorflow' has no attribute 'contrib' How can I resolve this?
I haven't used older versions of tensorflow. Is this what you're looking for?
from tensorflow.keras.layers import RNN
Info on contrib:
https://www.tensorflow.org/guide/migrate#a_note_on_slim_contriblayers
from tensor flow
https://www.tensorflow.org/guide/upgrade#compatibility_modules
and as describe in this thread
tensorflow.contrib doesn't exist in 2.0.
https://github.com/tensorflow/tensorflow/issues/31350#issuecomment-518749548