Skip to content

Commit c3bf083

Browse files
authored
pt
1 parent 4c36e31 commit c3bf083

File tree

1 file changed

+2
-2
lines changed
  • src/lightning/pytorch/accelerators

1 file changed

+2
-2
lines changed

src/lightning/pytorch/accelerators/cpu.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -48,13 +48,13 @@ def teardown(self) -> None:
4848

4949
@staticmethod
5050
@override
51-
def parse_devices(devices: Union[int, str, List[int]]) -> int:
51+
def parse_devices(devices: Union[int, str]) -> int:
5252
"""Accelerator device parsing logic."""
5353
return _parse_cpu_cores(devices)
5454

5555
@staticmethod
5656
@override
57-
def get_parallel_devices(devices: Union[int, str, List[int]]) -> List[torch.device]:
57+
def get_parallel_devices(devices: Union[int, str]) -> List[torch.device]:
5858
"""Gets parallel devices for the Accelerator."""
5959
devices = _parse_cpu_cores(devices)
6060
return [torch.device("cpu")] * devices

0 commit comments

Comments
 (0)