Commit 087d0cb1 authored by FrankLeeeee's avatar FrankLeeeee
Browse files

[accelerator] fixed npu api

parent 8823cc48
...@@ -31,7 +31,7 @@ class NpuAccelerator(BaseAccelerator): ...@@ -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:
""" """
......
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