In line where I try to add LSTM layer to my Sequential model from tensorflow.keras in this way:
from tensorflow.keras import Sequential
from tensorflow.keras.layers import Dense, LSTM, Dropout, GRU, TimeDistributed
#...
modelX1 = Sequential()
modelX1.add(LSTM(LSTM_neurons[0],input_shape=(dataX1.shape[1],dataX1.shape[2]), activation='tanh', recurrent_activation='tanh', use_bias=True, return_sequences = True))
This error appears:
File "C:\Users\mroso\Anaconda3\lib\site-packages\tensorflow_core\python\ops\resource_variable_ops.py", line 168, in _variable_handle_from_shape_and_dtype handle_data.shape_and_type.append(
AttributeError: 'google.protobuf.pyext._message.RepeatedCompositeCo' object has no attribute 'append'
I am using Tensorflow 2.1.0, protobuf 3.11.4, Spyder 4 and I am working on Windows 10. When I was using Tensorflow 1.4 (90% sure, that was this version) everything was all right. Does anyone know how to fix this error? Thank you in advance for your help.