Skip to content

Commit f8b292d

Browse files
authored
Update outputs.py
1 parent 5655b22 commit f8b292d

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

src/diffusers/utils/outputs.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,12 +65,14 @@ def __init_subclass__(cls) -> None:
6565
cls,
6666
torch.utils._pytree._dict_flatten,
6767
lambda values, context: cls(**torch.utils._pytree._dict_unflatten(values, context)),
68+
serialized_type_name=f"{cls.__module__}.{cls.__name__}"
6869
)
6970
else:
7071
torch.utils._pytree.register_pytree_node(
7172
cls,
7273
torch.utils._pytree._dict_flatten,
7374
lambda values, context: cls(**torch.utils._pytree._dict_unflatten(values, context)),
75+
serialized_type_name=f"{cls.__module__}.{cls.__name__}"
7476
)
7577

7678
def __post_init__(self) -> None:

0 commit comments

Comments
 (0)