Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
chenpangpang
diffusers
Commits
534512be
Unverified
Commit
534512be
authored
Sep 22, 2022
by
Mishig Davaadorj
Committed by
GitHub
Sep 22, 2022
Browse files
[flax] 'dtype' should not be part of self._internal_dict (#609)
parent
4b8880a3
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
0 deletions
+3
-0
src/diffusers/configuration_utils.py
src/diffusers/configuration_utils.py
+3
-0
No files found.
src/diffusers/configuration_utils.py
View file @
534512be
...
@@ -456,6 +456,9 @@ def flax_register_to_config(cls):
...
@@ -456,6 +456,9 @@ def flax_register_to_config(cls):
# Make sure init_kwargs override default kwargs
# Make sure init_kwargs override default kwargs
new_kwargs
=
{
**
default_kwargs
,
**
init_kwargs
}
new_kwargs
=
{
**
default_kwargs
,
**
init_kwargs
}
# dtype should be part of `init_kwargs`, but not `new_kwargs`
if
"dtype"
in
new_kwargs
:
new_kwargs
.
pop
(
"dtype"
)
# Get positional arguments aligned with kwargs
# Get positional arguments aligned with kwargs
for
i
,
arg
in
enumerate
(
args
):
for
i
,
arg
in
enumerate
(
args
):
...
...
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