1
0
mirror of https://github.com/huggingface/diffusers.git synced 2026-01-29 07:22:12 +03:00

[Contributor Experience] Fix test collection on MPS (#6808)

* Update testing_utils.py

* Update testing_utils.py
This commit is contained in:
UmerHA
2024-02-02 16:29:00 +01:00
committed by GitHub
parent adcbe674a4
commit 9cc59ba089

View File

@@ -854,6 +854,8 @@ def _is_torch_fp64_available(device):
import torch
device = torch.device(device)
try:
x = torch.zeros((2, 2), dtype=torch.float64).to(device)
_ = torch.mul(x, x)