summaryrefslogtreecommitdiff
path: root/models/auto_encoder.py
diff options
context:
space:
mode:
authorJordan Gong <jordan.gong@protonmail.com>2021-02-20 14:42:45 +0800
committerJordan Gong <jordan.gong@protonmail.com>2021-02-20 14:43:06 +0800
commitc538919cb69e35a46811aef0b23baefe6a4c499c (patch)
treebee9a9582dfbb60053a6dd53f1a958abaa9dd8d5 /models/auto_encoder.py
parent969030864495e7c2b419400fd81ee0fad83de41e (diff)
parent820d3dec284f38e6a3089dad5277bc3f6c5123bf (diff)
Merge branch 'master' into python3.8
# Conflicts: # models/model.py # models/rgb_part_net.py
Diffstat (limited to 'models/auto_encoder.py')
-rw-r--r--models/auto_encoder.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/models/auto_encoder.py b/models/auto_encoder.py
index e17caed..6f388c2 100644
--- a/models/auto_encoder.py
+++ b/models/auto_encoder.py
@@ -173,7 +173,7 @@ class AutoEncoder(nn.Module):
return (
(f_a_c1_t2_, f_c_c1_t2_, f_p_c1_t2_),
- (xrecon_loss, cano_cons_loss, pose_sim_loss * 10)
+ torch.stack((xrecon_loss, cano_cons_loss, pose_sim_loss * 10))
)
else: # evaluating
return f_c_c1_t2_, f_p_c1_t2_