Hugging Face
Models
Datasets
Spaces
Community
Docs
Enterprise
Pricing
Log In
Sign Up
Spaces:
itzbhav
/
RUBY
like
0
Sleeping
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
RUBY
/
sample.py
itzbhav
Upload 8 files
748b6ee
verified
4 months ago
raw
Copy download link
history
blame
contribute
delete
Safe
187 Bytes
import
tensorflow
as
tf
# Check if GPU is available
if
tf.test.is_gpu_available():
print
(
"GPU is available"
)
else
:
print
(
"GPU is not available"
)
# Rest of your code...