Skip to content

Commit

Permalink
Format
Browse files Browse the repository at this point in the history
  • Loading branch information
EthanSteinbergPrealize committed Mar 21, 2024
1 parent 8bca94f commit f6c1807
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/femr/models/transformer.py
Original file line number Diff line number Diff line change
Expand Up @@ -303,7 +303,7 @@ def forward(self, batch: Mapping[str, Any], return_loss=True, return_logits=Fals
else:
loss = 0
features = features.reshape(-1, features.shape[-1])
if 'task' in batch:
if "task" in batch:
features = features[batch["transformer"]["label_indices"], :]
result = {
"timestamps": batch["transformer"]["timestamps"][batch["transformer"]["label_indices"]],
Expand Down

0 comments on commit f6c1807

Please sign in to comment.