diff options
author | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-12 20:37:29 +0800 |
---|---|---|
committer | Jordan Gong <jordan.gong@protonmail.com> | 2021-03-12 20:37:29 +0800 |
commit | 27ab5fc3374f7e3cf57aa604978fbb9eabfcb76d (patch) | |
tree | f9622b1a7f6a9ebb5ced95f3420664a9243bd388 /models | |
parent | e83ae0bcb5c763636fd522c2712a3c8aef558f3c (diff) | |
parent | 5c4483ea0c7b2e9166f94d6b6e3b8a070eb959f2 (diff) |
Merge branch 'master' into data_parallel
Diffstat (limited to 'models')
-rw-r--r-- | models/model.py | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/models/model.py b/models/model.py index bf79564..b623171 100644 --- a/models/model.py +++ b/models/model.py @@ -291,7 +291,7 @@ class Model: 'PartNet': losses[4] }, self.curr_iter) # None-zero losses in batch - if hpm_num_non_zero is not None and hpm_num_non_zero is not None: + if hpm_num_non_zero is not None and pn_num_non_zero is not None: self.writer.add_scalars('Loss/non-zero counts', { 'HPM': hpm_num_non_zero.mean(), 'PartNet': pn_num_non_zero.mean() |