Skip to content

Commit

Permalink
Refactor decode_smiles and stage connection
Browse files Browse the repository at this point in the history
  • Loading branch information
roman-bushuiev committed Aug 14, 2024
1 parent 49afb71 commit 22f788b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions massspecgym/models/de_novo/smiles_tranformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -107,9 +107,9 @@ def step(self, batch: dict, stage: Stage = Stage.NONE) -> dict:

# Generate SMILES strings
if stage in self.log_only_loss_at_stages:
mols_pred = self.decode_smiles(batch["spec"])
else:
mols_pred = None
else:
mols_pred = self.decode_smiles(batch["spec"])

return dict(loss=loss, mols_pred=mols_pred)

Expand Down

0 comments on commit 22f788b

Please sign in to comment.