mirror of
https://github.com/hpcaitech/ColossalAI.git
synced 2025-09-06 11:32:10 +00:00
[accelerator] fixed npu api
This commit is contained in:
@@ -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:
|
||||||
"""
|
"""
|
||||||
|
Reference in New Issue
Block a user