diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-27 21:27:45 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-27 21:27:45 +0800 |
commit | 30425d5fa8bdb58460adaaaaa2aae02b0d488812 (patch) | |
tree | 96f1f001c031e1c8683b9522131ec421586d0ea7 /models/model.py | |
parent | 6aad65a708f518073c07b3f896d0107a17198d14 (diff) | |
parent | cc9055ed68f4839cf953ce9a7e74e4c87d2ed279 (diff) |
Merge branch 'python3.8' into python3.7
Diffstat (limited to 'models/model.py')
-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 78a9c0f..dbbc557 100644 --- a/models/model.py +++ b/models/model.py @@ -341,8 +341,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 |