Skip to content

Commit

Permalink
Rename train_loss -> total_train_loss
Browse files Browse the repository at this point in the history
Signed-off-by: Kim, Vinnam <vinnam.kim@intel.com>
  • Loading branch information
vinnamkim committed Nov 28, 2023
1 parent 61c09ab commit 6128725
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions src/otx/core/model/module/base.py
Original file line number Diff line number Diff line change
Expand Up @@ -58,15 +58,15 @@ def training_step(self, inputs: OTXBatchDataEntity, batch_idx: int) -> Tensor:
prog_bar=True,
)

train_loss = sum(train_loss.values())
total_train_loss = sum(train_loss.values())
self.log(
"train/loss",
train_loss,
total_train_loss,
on_step=True,
on_epoch=False,
prog_bar=True,
)
return train_loss
return total_train_loss

raise TypeError(train_loss)

Expand Down

0 comments on commit 6128725

Please sign in to comment.