d 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 to True) —
Whether or not to return a models.unet_2d_condition.UNet2DConditionOutput instead of a plain tuple.


Returns

Transformer2DModelOutput or tuple



Transformer2DModelOutput if return_dict is True, otherwise a tuple. When
returning a tuple, the first element is the sam