Skip to content

Commit

Permalink
Fixed log loss.
Browse files Browse the repository at this point in the history
  • Loading branch information
cschaefer26 committed Jul 2, 2020
1 parent 88bb65e commit 0e4f6a3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion trainer/common.py
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ def forward(self, x, target, lens):

class LogL1(torch.nn.Module):

def forward(self, x, target, lens):
def forward(self, x, target):
target.requires_grad = False
target = torch.log(target + 1.0)
x = torch.log(x + 1.0)
Expand Down

0 comments on commit 0e4f6a3

Please sign in to comment.