From 4befe59046fb3adf8ef8eb589999a74cf7136ff6 Mon Sep 17 00:00:00 2001 From: Jordan Gong Date: Wed, 6 Jan 2021 21:26:56 +0800 Subject: Add TensorBoard support --- models/rgb_part_net.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'models/rgb_part_net.py') diff --git a/models/rgb_part_net.py b/models/rgb_part_net.py index a58be39..73d5952 100644 --- a/models/rgb_part_net.py +++ b/models/rgb_part_net.py @@ -78,7 +78,7 @@ class RGBPartNet(nn.Module): batch_all_triplet_loss = self.ba_triplet_loss(x, y) losses = (*losses, batch_all_triplet_loss) loss = torch.sum(torch.stack(losses)) - return loss, (loss.item() for loss in losses) + return loss, [loss.item() for loss in losses] else: return x -- cgit v1.2.3