File size: 185 Bytes
be4fd2b
 
 
 
 
 
1
2
3
4
5
6
7
#!/bin/env python
# This exists because sometimes my laptop goes to sleep,
# and this disables cuda hw somehow
import torch
print("Is cuda available?")
print(torch.cuda.is_available())