diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-27 21:27:36 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-27 21:27:36 +0800 |
commit | cc9055ed68f4839cf953ce9a7e74e4c87d2ed279 (patch) | |
tree | 2cc1c62a8bab297b53a488f712307754faa540f5 | |
parent | f065f227b0bcdac61db9240f7df6ea2b748a89b7 (diff) | |
parent | 99d1b18ac380bcf7d7579d80e09c9ddaecde44b3 (diff) |
Merge branch 'master' into python3.8
-rw-r--r-- | models/model.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/models/model.py b/models/model.py index b2947a0..8e4398b 100644 --- a/models/model.py +++ b/models/model.py @@ -344,8 +344,8 @@ class Model: ) losses = torch.stack(( *ae_losses, - hpm_result.pop('loss').mean(), - pn_result.pop('loss').mean() + torch.log(hpm_result.pop('loss').mean() + 1), + torch.log(pn_result.pop('loss').mean() + 1) )) return losses, hpm_result, pn_result |