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
a6709afe
Unverified
Commit
a6709afe
authored
Jan 29, 2024
by
Frank Lee
Committed by
GitHub
Jan 29, 2024
Browse files
Merge pull request #5321 from FrankLeeeee/hotfix/accelerator-api
[accelerator] fixed npu api
parents
8823cc48
087d0cb1
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 @
a6709afe
...
...
@@ -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