Skip to content

Commit

Permalink
fix merge issue (#12420)
Browse files Browse the repository at this point in the history
  • Loading branch information
DuYicong515 authored Mar 23, 2022
1 parent 1c18d5e commit 7a6efb3
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions pytorch_lightning/trainer/connectors/accelerator_connector.py
Original file line number Diff line number Diff line change
Expand Up @@ -798,19 +798,6 @@ def tpu_cores(self) -> Optional[Union[List[int], int]]:
return self._tpu_cores # type: ignore
return 0

@property
def tpu_id(self) -> Optional[int]:
if isinstance(self.accelerator, TPUAccelerator):
if isinstance(self._tpu_cores, list):
return self._tpu_cores[0]
return None

@property
def num_ipus(self) -> int:
if isinstance(self.accelerator, IPUAccelerator):
return self.devices
return 0

@property
def gpus(self) -> Optional[Union[List[int], str, int]]:
return self._gpus
Expand Down

0 comments on commit 7a6efb3

Please sign in to comment.