Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
OpenDAS
ColossalAI
Commits
087d0cb1
Commit
087d0cb1
authored
Jan 29, 2024
by
FrankLeeeee
Browse files
[accelerator] fixed npu api
parent
8823cc48
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
colossalai/accelerator/npu_accelerator.py
colossalai/accelerator/npu_accelerator.py
+1
-1
No files found.
colossalai/accelerator/npu_accelerator.py
View file @
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
:
"""
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment