mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-26 07:22:12 +00:00
Merge pull request #5321 from FrankLeeeee/hotfix/accelerator-api
[accelerator] fixed npu api
This commit is contained in:
commit
a6709afe66
@ -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:
|
||||
"""
|
||||
|
Loading…
Reference in New Issue
Block a user