Merge pull request #5321 from FrankLeeeee/hotfix/accelerator-api

[accelerator] fixed npu api
pull/5322/head^2
Frank Lee 2024-01-29 14:29:58 +08:00 committed by GitHub
commit a6709afe66
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
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 torch.version.npu
return torch.version.cann
def get_current_device(self) -> torch.device:
"""