DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR SHELL
pytorch cuda
evice = torch.device("cuda:0" if torch.cuda.is_available() else "cpu")
Source by pytorch.org #
PREVIOUS
NEXT
Tagged:
#pytorch
#cuda
ADD COMMENT
Topic
COMMENT
Name
4+4 =
Submit