Hugging Face
Models
Datasets
Spaces
Posts
Docs
Enterprise
Pricing
Log In
Sign Up
Datasets:
ppbrown
/
tokenspace
like
6
Modalities:
Text
Formats:
text
Size:
< 1K
Libraries:
Datasets
Croissant
Dataset card
Viewer
Files
Files and versions
Community
2
46dde6d
tokenspace
/
cuda-check.py
ppbrown
Upload cuda-check.py
be4fd2b
verified
9 months ago
raw
Copy download link
history
blame
Safe
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())