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 4c36e31 commit c3bf083Copy full SHA for c3bf083
src/lightning/pytorch/accelerators/cpu.py
@@ -48,13 +48,13 @@ def teardown(self) -> None:
48
49
@staticmethod
50
@override
51
- def parse_devices(devices: Union[int, str, List[int]]) -> int:
+ def parse_devices(devices: Union[int, str]) -> int:
52
"""Accelerator device parsing logic."""
53
return _parse_cpu_cores(devices)
54
55
56
57
- def get_parallel_devices(devices: Union[int, str, List[int]]) -> List[torch.device]:
+ def get_parallel_devices(devices: Union[int, str]) -> List[torch.device]:
58
"""Gets parallel devices for the Accelerator."""
59
devices = _parse_cpu_cores(devices)
60
return [torch.device("cpu")] * devices
0 commit comments