lime-j commited on
Commit
255cbaf
·
1 Parent(s): b668163
Files changed (1) hide show
  1. app.py +4 -0
app.py CHANGED
@@ -6,6 +6,10 @@ import torch.nn.functional as F
6
  from models.arch.RDnet_ import FullNet_NLP
7
  from models.arch.classifier import PretrainedConvNext
8
  import torchvision.transforms.functional as TF
 
 
 
 
9
  channels = [64, 128, 256, 512]
10
  layers = [2, 2, 4, 2]
11
  num_subnet = 4
 
6
  from models.arch.RDnet_ import FullNet_NLP
7
  from models.arch.classifier import PretrainedConvNext
8
  import torchvision.transforms.functional as TF
9
+ print(f"Is CUDA available: {torch.cuda.is_available()}")
10
+ # True
11
+ print(f"CUDA device: {torch.cuda.get_device_name(torch.cuda.current_device())}")
12
+ # Tesla T4
13
  channels = [64, 128, 256, 512]
14
  layers = [2, 2, 4, 2]
15
  num_subnet = 4