Skip to content

Commit

Permalink
Bug Fix: Remove explicit message argument in deprecate (huggingface#2421
Browse files Browse the repository at this point in the history
)

Remove explicit message argument
  • Loading branch information
alvanli authored Mar 3, 2023
1 parent 5e5ce13 commit e75eae3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/diffusers/models/cross_attention.py
Original file line number Diff line number Diff line change
Expand Up @@ -260,7 +260,7 @@ def prepare_attention_mask(self, attention_mask, target_length, batch_size=None)
deprecate(
"batch_size=None",
"0.0.15",
message=(
(
"Not passing the `batch_size` parameter to `prepare_attention_mask` can lead to incorrect"
" attention mask preparation and is deprecated behavior. Please make sure to pass `batch_size` to"
" `prepare_attention_mask` when preparing the attention_mask."
Expand Down

0 comments on commit e75eae3

Please sign in to comment.