r_attention_mask ( torch.Tensor, optional) —
Cross-attention mask applied to encoder_hidden_states. Two formats supported:

Mask (batch, sequence_length) True = keep, False = discard.
Bias (batch, 1, sequence_length) 0 = keep, -10000 = discard.

If ndim == 2: will be interpreted as a mask, then converted into a bias consistent with the format
above. This bias will be added to the cross-attention scores.   return_dict (bool, optional, defaults t