Created
August 4, 2024 18:55
-
-
Save ruslangrimov/55653e76223500568a4e5c94d31d64fe to your computer and use it in GitHub Desktop.
Get model device
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
device = next(model.parameters()).device |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment