Spaces:
Running
on
T4
Running
on
T4
update
Browse files- models/ram.py +1 -1
models/ram.py
CHANGED
@@ -10,7 +10,7 @@ from deepinv.utils.tensorlist import TensorList
|
|
10 |
from huggingface_hub import hf_hub_download
|
11 |
|
12 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
13 |
-
Tensor = torch.cuda.FloatTensor if cuda else torch.FloatTensor
|
14 |
|
15 |
class RAM(nn.Module):
|
16 |
r"""
|
|
|
10 |
from huggingface_hub import hf_hub_download
|
11 |
|
12 |
device = 'cuda' if torch.cuda.is_available() else 'cpu'
|
13 |
+
Tensor = torch.cuda.FloatTensor if torch.cuda.is_available() else torch.FloatTensor
|
14 |
|
15 |
class RAM(nn.Module):
|
16 |
r"""
|