summaryrefslogtreecommitdiffstats
path: root/training/util.py
diff options
context:
space:
mode:
Diffstat (limited to 'training/util.py')
-rw-r--r--training/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/training/util.py b/training/util.py
index 6f1e85a..bed7111 100644
--- a/training/util.py
+++ b/training/util.py
@@ -262,7 +262,7 @@ class EMAModel:
262 raise ValueError("collected_params and shadow_params must have the same length") 262 raise ValueError("collected_params and shadow_params must have the same length")
263 263
264 @contextmanager 264 @contextmanager
265 def apply_temporary(self, parameters): 265 def apply_temporary(self, parameters: Iterable[torch.nn.Parameter]):
266 try: 266 try:
267 parameters = list(parameters) 267 parameters = list(parameters)
268 original_params = [p.clone() for p in parameters] 268 original_params = [p.clone() for p in parameters]