ppbrown commited on
Commit
be4fd2b
1 Parent(s): 4df5f4d

Upload cuda-check.py

Browse files
Files changed (1) hide show
  1. cuda-check.py +6 -0
cuda-check.py ADDED
@@ -0,0 +1,6 @@
 
 
 
 
 
 
 
1
+ #!/bin/env python
2
+ # This exists because sometimes my laptop goes to sleep,
3
+ # and this disables cuda hw somehow
4
+ import torch
5
+ print("Is cuda available?")
6
+ print(torch.cuda.is_available())