summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-03-12 20:37:29 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-03-12 20:37:29 +0800
commit27ab5fc3374f7e3cf57aa604978fbb9eabfcb76d (patch)
treef9622b1a7f6a9ebb5ced95f3420664a9243bd388
parente83ae0bcb5c763636fd522c2712a3c8aef558f3c (diff)
parent5c4483ea0c7b2e9166f94d6b6e3b8a070eb959f2 (diff)
Merge branch 'master' into data_parallel
-rw-r--r--models/model.py2
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()