Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docling/utils/accelerator_utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ def decide_device(

has_cuda = torch.backends.cuda.is_built() and torch.cuda.is_available()
has_mps = torch.backends.mps.is_built() and torch.backends.mps.is_available()
has_xpu = torch.xpu.is_available()
has_xpu = hasattr(torch, "xpu") and torch.xpu.is_available()

if supported_devices is not None:
if has_cuda and AcceleratorDevice.CUDA not in supported_devices:
Expand Down