Skip to content

Commit a934e5b

Browse files
authored
[Versatile Diffusion] add upcast_attention (#1605)
add upcast_attention arg
1 parent a643c63 commit a934e5b

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/diffusers/pipelines/versatile_diffusion/modeling_text_unet.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ def get_down_block(
3131
dual_cross_attention=False,
3232
use_linear_projection=False,
3333
only_cross_attention=False,
34+
upcast_attention=False,
3435
):
3536
down_block_type = down_block_type[7:] if down_block_type.startswith("UNetRes") else down_block_type
3637
if down_block_type == "DownBlockFlat":
@@ -83,6 +84,7 @@ def get_up_block(
8384
dual_cross_attention=False,
8485
use_linear_projection=False,
8586
only_cross_attention=False,
87+
upcast_attention=False,
8688
):
8789
up_block_type = up_block_type[7:] if up_block_type.startswith("UNetRes") else up_block_type
8890
if up_block_type == "UpBlockFlat":

0 commit comments

Comments
 (0)