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
jerrrrry
infinicore
Commits
3c696932
Commit
3c696932
authored
May 13, 2025
by
wooway777
Browse files
issue/216 - Fixed Enum Camparison in util.py
parent
125afeb5
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
1 addition
and
1 deletion
+1
-1
test/infiniop/libinfiniop/utils.py
test/infiniop/libinfiniop/utils.py
+1
-1
No files found.
test/infiniop/libinfiniop/utils.py
View file @
3c696932
...
...
@@ -477,7 +477,7 @@ def get_test_devices(args):
def
get_sync_func
(
device
):
import
torch
if
device
==
"cpu"
:
if
device
==
InfiniDeviceEnum
.
CPU
:
sync
=
None
else
:
sync
=
getattr
(
torch
,
infiniDeviceEnum_str_map
[
device
]).
synchronize
...
...
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