Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CPP

torch cuda is available

torch.cuda.is_available()

torch.cuda.current_device()

torch.cuda.device(0)

torch.cuda.device_count()

torch.cuda.get_device_name(0)
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #torch #cuda
ADD COMMENT
Topic
Name
1+2 =