We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 435f6b7 commit 94643faCopy full SHA for 94643fa
src/diffusers/training_utils.py
@@ -284,7 +284,7 @@ def free_memory():
284
elif torch.backends.mps.is_available():
285
torch.mps.empty_cache()
286
elif is_torch_npu_available():
287
- torch_npu.empty_cache()
+ torch_npu.npu.empty_cache()
288
289
290
# Adapted from torch-ema https://github.com/fadel/pytorch_ema/blob/master/torch_ema/ema.py#L14
0 commit comments