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:
@@ -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)
|
||||
|
||||
Reference in New Issue
Block a user