1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-27 17:22:53 +03:00

ema step, don't empty cuda cache (#2563)

This commit is contained in:
Will Berman
2023-03-06 01:54:56 -08:00
committed by GitHub
parent b36cbd4fba
commit f7278638e4

View File

@@ -203,8 +203,6 @@ class EMAModel:
else:
s_param.copy_(param)
torch.cuda.empty_cache()
def copy_to(self, parameters: Iterable[torch.nn.Parameter]) -> None:
"""
Copy current averaged parameters into given collection of parameters.