Skip to content

Commit

Permalink
edit nn -> F(relu in D_loss)
Browse files Browse the repository at this point in the history
  • Loading branch information
jeonminkyu committed Jul 4, 2019
1 parent 40d88e7 commit 0bdf308
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion network/loss.py
Expand Up @@ -66,4 +66,4 @@ def __init__(self, device):
self.zero = torch.zeros([1]).type(self.dtype)

def forward(self, r_x, r_x_hat):
return torch.nn.ReLU(1 + r_x_hat[0]) + torch.nn.ReLU(1 - r_x[0])
return F.relu(1 + r_x_hat[0]) + F.relu(1 - r_x[0])

0 comments on commit 0bdf308

Please sign in to comment.