Skip to content

Commit d820f75

Browse files
authored
add mps empty cache
1 parent d4266a7 commit d820f75

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/diffusers/utils/testing_utils.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1067,7 +1067,7 @@ def _is_torch_fp64_available(device):
10671067
"cuda": torch.cuda.empty_cache,
10681068
"xpu": torch.xpu.empty_cache,
10691069
"cpu": None,
1070-
"mps": None,
1070+
"mps": torch.mps.empty_cache,
10711071
"default": None,
10721072
}
10731073
BACKEND_DEVICE_COUNT = {

0 commit comments

Comments
 (0)