shivambhosale commited on
Commit
3904368
1 Parent(s): ad4887b

Update UNet.py

Browse files
Files changed (1) hide show
  1. UNet.py +1 -5
UNet.py CHANGED
@@ -1,8 +1,4 @@
1
- import torch # ; print('Using torch version -', torch.__version__)
2
- if torch.cuda.is_available():
3
- device = 'cuda'
4
- else:
5
- device = 'cpu'
6
  from torch.nn import Module, Conv2d, ReLU, ModuleList, MaxPool2d, ConvTranspose2d, BCELoss, BCEWithLogitsLoss, functional as F
7
  from torch.optim import Adam
8
  from torchvision import transforms
1
+ import torch
 
 
 
 
2
  from torch.nn import Module, Conv2d, ReLU, ModuleList, MaxPool2d, ConvTranspose2d, BCELoss, BCEWithLogitsLoss, functional as F
3
  from torch.optim import Adam
4
  from torchvision import transforms