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 0640617 commit 2ef3f3aCopy full SHA for 2ef3f3a
thinc/compat.py
@@ -34,8 +34,8 @@
34
has_torch_cuda_gpu = torch.cuda.device_count() != 0
35
has_torch_mps_gpu = (
36
hasattr(torch, "has_mps")
37
- and torch.has_mps
38
- and torch.backends.mps.is_available()
+ and torch.has_mps # type: ignore[attr-defined]
+ and torch.backends.mps.is_available() # type: ignore[attr-defined]
39
)
40
has_torch_gpu = has_torch_cuda_gpu
41
torch_version = Version(str(torch.__version__))
0 commit comments