Skip to content

Commit

Permalink
fix loss
Browse files Browse the repository at this point in the history
close #14
  • Loading branch information
SSARCandy authored Mar 13, 2018
1 parent c6f55b6 commit 6f91c19
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion models.py
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ def CORAL(source, target):

# frobenius norm between source and target
loss = torch.mean(torch.mul((xc - xct), (xc - xct)))
loss = loss/(4*d*4)
loss = loss/(4*d*d)

return loss

Expand Down

0 comments on commit 6f91c19

Please sign in to comment.