attention-is-all-you-need-keras icon indicating copy to clipboard operation
attention-is-all-you-need-keras copied to clipboard

Transformer encoder layer instead of Bidirectional LSTM

Open Eugen2525 opened this issue 5 years ago • 1 comments

So I want to change below Keras bidirectional LSTM layer into Transformer encoder:

lstmLayer = keras.layers.Bidirectional( keras.layers.CuDNNLSTM(args.rnnSize, return_sequences = True, recurrent_initializer = 'glorot_uniform' ) )(inputLayer)

so can this be accomplished using your library? The rest of the code remains same, I just want to replace bidirectional LSTM layers with Transformer.

I would really appreciate your help. Thanks.

Eugen2525 avatar Feb 02 '19 06:02 Eugen2525

@Eugen2525 did you figure it out how to do it?

mostafaalishahi avatar Jan 09 '20 15:01 mostafaalishahi