Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings
/aoPublic

Commit0aaaae6

Browse files
committed
refine _DEVICES
1 parentf0c1787 commit0aaaae6

File tree

1 file changed

+1
-5
lines changed

1 file changed

+1
-5
lines changed

‎test/prototype/test_quantized_training.py‎

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -39,12 +39,8 @@
3939
ifcommon_utils.SEEDisNone:
4040
common_utils.SEED=1234
4141

42-
_DEVICES= (
43-
["cpu"]
44-
+ (["cuda"]iftorch.cuda.is_available()else [])
45-
+ (["xpu"]iftorch.xpu.is_available()else [])
46-
)
4742
_DEVICE=get_current_accelerator_device()
43+
_DEVICES= ["cpu"]+ ([_DEVICE]iftorch.accelerator.is_available()else [])
4844

4945

5046
def_reset():

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp