Skip to content

Commit 2169bc4

Browse files
Update src/diffusers/models/activations.py
Co-authored-by: Eric Alcaide <[email protected]>
1 parent 41fae42 commit 2169bc4

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/models/activations.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33

44
def get_activation(act_fn):
5-
if act_fn in ["swish", "silu"]:
5+
if act_fn in {"swish", "silu"}:
66
return nn.SiLU()
77
elif act_fn == "mish":
88
return nn.Mish()

0 commit comments

Comments
 (0)