[accelerator] fixed npu api

This commit is contained in:
FrankLeeeee 2024-01-29 14:27:52 +08:00
parent 8823cc4831
commit 087d0cb1fc

View File

@ -31,7 +31,7 @@ class NpuAccelerator(BaseAccelerator):
"""
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:
"""