jadechoghari commited on
Commit
5f5ff73
1 Parent(s): 303a347

Update diffloss.py

Browse files
Files changed (1) hide show
  1. diffloss.py +1 -0
diffloss.py CHANGED
@@ -5,6 +5,7 @@ import math
5
 
6
  from .diffusion import create_diffusion
7
 
 
8
 
9
  class DiffLoss(nn.Module):
10
  """Diffusion Loss"""
 
5
 
6
  from .diffusion import create_diffusion
7
 
8
+ device = torch.device("cuda" if torch.cuda.is_available() else "cpu")
9
 
10
  class DiffLoss(nn.Module):
11
  """Diffusion Loss"""