[accelerator] fixed npu api

pull/5321/head
FrankLeeeee 2024-01-29 14:27:52 +08:00
parent 8823cc4831
commit 087d0cb1fc
1 changed files with 1 additions and 1 deletions

View File

@ -31,7 +31,7 @@ class NpuAccelerator(BaseAccelerator):
""" """
Return the version of the accelerator which torch is built against. Return the version of the accelerator which torch is built against.
""" """
return torch.version.npu return torch.version.cann
def get_current_device(self) -> torch.device: def get_current_device(self) -> torch.device:
""" """