You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
rnn = RecurrentModel(input=input, initial_states=[state1_tm1, state2_tm1, state3_tm1], output=output, final_states=[state1_t, state2_t, state3_t])`
does anyone can help me?
my keras version is 2.2,ubuntu 16.04,python3
The text was updated successfully, but these errors were encountered:
Got it guys, keras also have layers called GRUCell and LSTMCell, and the line "from keras.layers import *" overwrites the one imported from recurrentshop.
You should consider swapping both "from keras.layers import *" and "from recurrentshop import *".
errors occur when I use the example code:
`from recurrentshop import *
from keras.layers import *
from keras.models import Model
input = Input((5,))
state1_tm1 = Input((10,))
state2_tm1 = Input((10,))
state3_tm1 = Input((10,))
lstm_output, state1_t, state2_t = LSTMCell(10)([input, state1_tm1, state2_tm1])
gru_output, state3_t = GRUCell(10)([input, state3_tm1])
output = add([lstm_output, gru_output])
output = Activation('tanh')(output)
rnn = RecurrentModel(input=input, initial_states=[state1_tm1, state2_tm1, state3_tm1], output=output, final_states=[state1_t, state2_t, state3_t])`
does anyone can help me?
my keras version is 2.2,ubuntu 16.04,python3
The text was updated successfully, but these errors were encountered: