Unverified Commit a6709afe authored by Frank Lee's avatar Frank Lee Committed by GitHub
Browse files

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

[accelerator] fixed npu api
parents 8823cc48 087d0cb1
......@@ -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:
"""
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment