Skip to content

Commit

Permalink
tweak
Browse files Browse the repository at this point in the history
  • Loading branch information
matsen committed Oct 16, 2024
1 parent 6190196 commit 3fc41af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion netam/dasm.py
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,7 @@ def loss_of_batch(self, batch):
# logit space, so we are set up for using the cross entropy loss.
# However we have to mask out the sites that are not substituted, i.e.
# the sites for which aa_subs_indicator is 0.
subs_mask = aa_subs_indicator.bool()
subs_mask = aa_subs_indicator == 1
csp_pred = predictions[subs_mask]
csp_targets = aa_children_idxs[subs_mask]
csp_loss = self.xent_loss(csp_pred, csp_targets)
Expand Down

0 comments on commit 3fc41af

Please sign in to comment.