Skip to content

Commit

Permalink
log loss
Browse files Browse the repository at this point in the history
  • Loading branch information
GabrielBG0 committed May 14, 2024
1 parent 77c0828 commit add3be0
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions minerva/models/nets/setr.py
Original file line number Diff line number Diff line change
Expand Up @@ -604,6 +604,16 @@ def _single_step(self, batch: torch.Tensor, batch_idx: int, step_name: str):
sync_dist=True,
)

self.log(
f"{step_name}_loss",
loss,
on_step=True,
on_epoch=True,
prog_bar=True,
logger=True,
sync_dist=True,
)

return loss

def training_step(self, batch: torch.Tensor, batch_idx: int):
Expand Down

0 comments on commit add3be0

Please sign in to comment.