mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-06-22 21:49:08 +00:00
[accelerator] fixed npu api
This commit is contained in:
parent
8823cc4831
commit
087d0cb1fc
@ -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:
|
||||||
"""
|
"""
|
||||||
|
Loading…
Reference in New Issue
Block a user