farizrahman4u / seq2seq

Sequence to Sequence Learning with Keras
GNU General Public License v2.0
3.17k stars 845 forks source link

Dropout in Readout Model #252

Closed Tobbe02 closed 6 years ago

Tobbe02 commented 6 years ago

Hey, I am trying to add a Dropout-Layer to a Readout Model like this:

rnn = RecurrentSequential(readout='add', teacher_force=True, return_sequences=True)
rnn.add(LSTMCell(10, input_dim=4))
rnn.add(LSTMCell(10))
rnn.add(Dropout(0.2))
rnn.add(LSTMCell(4))

but since Readout only works with Theano and the Dropout-Layer only works with Tensorflow, I somehow got stuck. Does anybody have any suggestions? :) Thanks in advance!

Tobbe02 commented 6 years ago

pardon me. I posted this in the wrong place (too early this morning...)