philipperemy / keras-attention

Keras Attention Layer (Luong and Bahdanau scores).
Apache License 2.0
2.8k stars 677 forks source link

Does it support causal mask? #67

Closed shaoyucheng closed 1 year ago

shaoyucheng commented 1 year ago

The effect is the same as the argument "use_casual_mask" in keras official layer class Attention. https://www.tensorflow.org/api_docs/python/tf/keras/layers/Attention Thanks for your useful module and expect your reply.

philipperemy commented 1 year ago

I don't think there is at the moment.

shaoyucheng commented 1 year ago

I don't think there is at the moment.

got it, thanks!