Skip to content

Commit

Permalink
Remove typecasting of labels
Browse files Browse the repository at this point in the history
  • Loading branch information
1pha committed Mar 5, 2024
1 parent 407643b commit 36b35d7
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion sage/trainer/trainer.py
Original file line number Diff line number Diff line change
Expand Up @@ -190,7 +190,7 @@ def forward(self, batch, mode: str = "train"):
"""
aug = getattr(self, f"{'train' if mode == 'train' else 'valid'}_transforms")
batch["brain"] = aug(batch["brain"]).as_tensor()
batch["age"] = batch["age"].float()
batch["age"] = batch["age"]
result: dict = self.model(**batch)
return result
except RuntimeError as e:
Expand Down

0 comments on commit 36b35d7

Please sign in to comment.