fix merge issue (#12420)

This commit is contained in:
DuYicong515 2022-03-23 11:17:17 -07:00 committed by GitHub
parent 1c18d5ecbc
commit 7a6efb38b2
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
1 changed files with 0 additions and 13 deletions

View File

@ -798,19 +798,6 @@ class AcceleratorConnector:
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