Skip to content

Add device to imports #82

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Apr 18, 2025
Merged

Conversation

ProExpertProg
Copy link
Contributor

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

Copy link
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