tokenspace / cuda-check.py
ppbrown's picture
Upload cuda-check.py
be4fd2b verified
raw
history blame
185 Bytes
#!/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())