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
f7278638
You need to sign in or sign up before continuing.
Unverified
Commit
f7278638
authored
Mar 06, 2023
by
Will Berman
Committed by
GitHub
Mar 06, 2023
Browse files
ema step, don't empty cuda cache (#2563)
parent
b36cbd4f
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
0 additions
and
2 deletions
+0
-2
src/diffusers/training_utils.py
src/diffusers/training_utils.py
+0
-2
No files found.
src/diffusers/training_utils.py
View file @
f7278638
...
@@ -203,8 +203,6 @@ class EMAModel:
...
@@ -203,8 +203,6 @@ class EMAModel:
else
:
else
:
s_param
.
copy_
(
param
)
s_param
.
copy_
(
param
)
torch
.
cuda
.
empty_cache
()
def
copy_to
(
self
,
parameters
:
Iterable
[
torch
.
nn
.
Parameter
])
->
None
:
def
copy_to
(
self
,
parameters
:
Iterable
[
torch
.
nn
.
Parameter
])
->
None
:
"""
"""
Copy current averaged parameters into given collection of parameters.
Copy current averaged parameters into given collection of parameters.
...
...
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