Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
renzhc
diffusers_dcu
Commits
aff574fb
Unverified
Commit
aff574fb
authored
Apr 21, 2025
by
Aamir Nazir
Committed by
GitHub
Apr 21, 2025
Browse files
Add Serialized Type Name kwarg in Model Output (#10502)
* Update outputs.py
parent
79ea8eb2
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
0 deletions
+1
-0
src/diffusers/utils/outputs.py
src/diffusers/utils/outputs.py
+1
-0
No files found.
src/diffusers/utils/outputs.py
View file @
aff574fb
...
...
@@ -71,6 +71,7 @@ class BaseOutput(OrderedDict):
cls
,
torch
.
utils
.
_pytree
.
_dict_flatten
,
lambda
values
,
context
:
cls
(
**
torch
.
utils
.
_pytree
.
_dict_unflatten
(
values
,
context
)),
serialized_type_name
=
f
"
{
cls
.
__module__
}
.
{
cls
.
__name__
}
"
,
)
def
__post_init__
(
self
)
->
None
:
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment