Skip to content

Commit

Permalink
fix: fix logging message bug #16
Browse files Browse the repository at this point in the history
  • Loading branch information
GangBean committed May 23, 2024
1 parent c65e77a commit 56975f7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions trainers/cdae_trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,8 @@ def _loss(self):
elif self.cfg.loss_name.lower() == 'bce' and not self.cfg.negative_sampling:
return nn.BCELoss()
else:
logger.error(f"Loss Not Exists: {loss_name} when negative_sampling == {self.cfg.negative_sampling}")
raise NotImplementedError(f"Loss Not Exists: {loss_name}")
logger.error(f"Loss Not Exists: {self.cfg.loss_name} when negative_sampling == {self.cfg.negative_sampling}")
raise NotImplementedError(f"Loss Not Exists: {self.cfg.loss_name}")


def train(self, train_dataloader: DataLoader) -> float:
Expand Down

0 comments on commit 56975f7

Please sign in to comment.