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
dgl
Commits
187b354a
Commit
187b354a
authored
Sep 01, 2025
by
sangwz
Browse files
Update __init__.py,'th.device("cuda") ' 会导致test_edge_softmax.py 等测例出现较多的device不匹配的报错,暂时还原
parent
46fc0f71
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
tests/backend/pytorch/__init__.py
tests/backend/pytorch/__init__.py
+1
-1
No files found.
tests/backend/pytorch/__init__.py
View file @
187b354a
...
...
@@ -4,7 +4,7 @@ import torch as th
def
cuda
():
return
th
.
device
(
"cuda"
)
return
th
.
device
(
"cuda
:0
"
)
def
is_cuda_available
():
...
...
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