summaryrefslogtreecommitdiff
path: root/models/model.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-12 20:36:27 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-12 20:36:27 +0800
commit5c4483ea0c7b2e9166f94d6b6e3b8a070eb959f2 (patch)
tree0b7aa3e20bbc792ff23d1802aaf520555497207a /models/model.py
parent2ea916b2a963eae7d47151b41c8c78a578c402e2 (diff)
Fix a typo when record none-zero counts
Diffstat (limited to 'models/model.py')
-rw-r--r--models/model.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/model.py b/models/model.py
index b09d600..89b34aa 100644
--- a/models/model.py
+++ b/models/model.py
@@ -273,7 +273,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()