Skip to content

Add device to imports#82

Merged
youkaichao merged 1 commit intothuml:masterfrom
neuralmagic:luka/add-device
Apr 18, 2025
Merged

Add device to imports#82
youkaichao merged 1 commit intothuml:masterfrom
neuralmagic:luka/add-device

Conversation

@ProExpertProg
Copy link
Copy Markdown
Contributor

This PR imports torch.device to further reduce the lint errors

Copy link
Copy Markdown
Member

@youkaichao youkaichao left a comment

Choose a reason for hiding this comment

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

LGTM, thanks for the fix! hopefully no one will name their variables as torch or device so we don't need to consider naming conflict.

@youkaichao youkaichao merged commit 3c95e7a into thuml:master Apr 18, 2025
1 check passed
@ProExpertProg ProExpertProg deleted the luka/add-device branch April 18, 2025 17:26
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants