RoboApocalypse commited on
Commit
e957495
·
verified ·
1 Parent(s): 64369ae

print the torch device

Browse files
Files changed (1) hide show
  1. app.py +1 -0
app.py CHANGED
@@ -8,6 +8,7 @@ import PIL.Image as Image
8
 
9
  # Set device to GPU if available
10
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
 
11
 
12
  # Load the OpenCLIP model and the necessary preprocessors
13
  # openclip_model = 'laion/CLIP-ViT-B-32-laion2B-s34B-b79K'
 
8
 
9
  # Set device to GPU if available
10
  device = torch.device('cuda' if torch.cuda.is_available() else 'cpu')
11
+ print(f"PyTorch Device {device}")
12
 
13
  # Load the OpenCLIP model and the necessary preprocessors
14
  # openclip_model = 'laion/CLIP-ViT-B-32-laion2B-s34B-b79K'