Hugging Face
Models
Datasets
Spaces
Buckets
new
Docs
Enterprise
Pricing
Website
Tasks
HuggingChat
Collections
Languages
Organizations
Community
Blog
Posts
Daily Papers
Hardware
Learn
Discord
Forum
GitHub
Solutions
Team & Enterprise
Hugging Face PRO
Enterprise Support
Inference Providers
Inference Endpoints
Storage Buckets
Log In
Sign Up
Spaces:
JX10086
/
test_2
like
0
Runtime error
App
Files
Files
Community
Fetching metadata from the HF Docker repository...
main
test_2
/
deoldify
/
device_id.py
JX10086
Upload 144 files
bbfff70
verified
over 2 years ago
Raw
Download with hf CLI
Copy download link
History
Blame
Contribute
Delete
Safe
176 Bytes
from
enum
import
IntEnum
class
DeviceId
(
IntEnum
):
GPU0 =
0
,
GPU1 =
1
,
GPU2 =
2
,
GPU3 =
3
,
GPU4 =
4
,
GPU5 =
5
,
GPU6 =
6
,
GPU7 =
7
,
CPU =
99