Spaces:
Paused
Paused
ManishThota
commited on
Update app.py
Browse files
app.py
CHANGED
@@ -8,9 +8,8 @@ torch.set_default_device("cuda")
|
|
8 |
|
9 |
# # Ensure GPU usage if available
|
10 |
# device = "cuda" if torch.cuda.is_available() else "cpu"
|
11 |
-
# torch.set_default_tensor_type('torch.cuda.FloatTensor' if device=='cuda' else 'torch.FloatTensor')
|
12 |
|
13 |
-
torch.
|
14 |
|
15 |
|
16 |
|
|
|
8 |
|
9 |
# # Ensure GPU usage if available
|
10 |
# device = "cuda" if torch.cuda.is_available() else "cpu"
|
|
|
11 |
|
12 |
+
torch.set_default_dtype()('torch.cuda.FloatTensor')
|
13 |
|
14 |
|
15 |
|