


encoder_hidden_states (torch.FloatTensor) — (batch, sequence_length, feature_dim) encoder hidden states


encoder_attention_mask (torch.Tensor) —
(batch, sequence_length) cross-attention mask, applied to encoder_hidden_states. True = keep, False =
discard. Mask will be converted into a bias, which adds large negative values to attention scores
corresponding to “discard” tokens.


return_dict (bool, optional, defaults to True) —
Whether or no