Skip to content

Commit

Permalink
fix: missing metrics for translations.
Browse files Browse the repository at this point in the history
  • Loading branch information
bdvllrs committed Sep 7, 2023
1 parent 68ae8a3 commit 4f3e2a0
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion pyproject.toml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
[tool.poetry]
name = "shimmer"
version = "0.1.0"
version = "0.1.1"
description = "A light GLoW"
authors = ["bdvllrs <[email protected]>"]
license = "MIT"
Expand Down
1 change: 1 addition & 0 deletions shimmer/modules/losses.py
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,7 @@ def _translation_loss(
}
)
losses["translations"] = torch.stack(list(losses.values()), dim=0).mean()
losses.update(metrics)
return losses


Expand Down

0 comments on commit 4f3e2a0

Please sign in to comment.