fix merge issue (#12420)
This commit is contained in:
parent
1c18d5ecbc
commit
7a6efb38b2
|
@ -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
|
||||
|
|
Loading…
Reference in New Issue