misterbrainley commited on
Commit
20bb009
1 Parent(s): de76c3a

remove cuda dependance for inference

Browse files
Files changed (1) hide show
  1. utils.py +2 -2
utils.py CHANGED
@@ -116,8 +116,8 @@ class VariationalEncoder(nn.Module):
116
  self.mu = nn.Linear(latent_size, latent_size)
117
  self.sigma = nn.Linear(latent_size, latent_size)
118
  self.N = torch.distributions.Normal(0, 1)
119
- self.N.loc = self.N.loc.cuda()
120
- self.N.scale = self.N.scale.cuda()
121
  self.kl = 0
122
 
123
  def forward(self, x):
 
116
  self.mu = nn.Linear(latent_size, latent_size)
117
  self.sigma = nn.Linear(latent_size, latent_size)
118
  self.N = torch.distributions.Normal(0, 1)
119
+ # self.N.loc = self.N.loc.cuda()
120
+ # self.N.scale = self.N.scale.cuda()
121
  self.kl = 0
122
 
123
  def forward(self, x):