Skip to content

fix: pass device arg to cuda() in pytorch test#213

Merged
hami-robot[bot] merged 1 commit into
Project-HAMi:mainfrom
mesutoezdil:fix/pytorch-test-device-arg
Jun 30, 2026
Merged

fix: pass device arg to cuda() in pytorch test#213
hami-robot[bot] merged 1 commit into
Project-HAMi:mainfrom
mesutoezdil:fix/pytorch-test-device-arg

Conversation

@mesutoezdil

Copy link
Copy Markdown
Contributor

--device argument was parsed but never forwarded to .cuda(), so the test always ran on GPU 0 regardless of input.

Fix: .cuda() -> .cuda(args.device), consistent with limit_mxnet.py and limit_tensorflow.py.

Signed-off-by: mesutoezdil <mesudozdil@gmail.com>
@mesutoezdil mesutoezdil force-pushed the fix/pytorch-test-device-arg branch from c00ec04 to cecabd0 Compare June 19, 2026 21:30

@archlitchi archlitchi left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

/lgtm

@hami-robot

hami-robot Bot commented Jun 30, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is APPROVED

This pull-request has been approved by: archlitchi, mesutoezdil

The full list of commands accepted by this bot can be found here.

The pull request process is described here

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

@hami-robot hami-robot Bot added the approved label Jun 30, 2026
@hami-robot hami-robot Bot merged commit 2b77491 into Project-HAMi:main Jun 30, 2026
10 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants