Skip to content

Commit

Permalink
pop labels
Browse files Browse the repository at this point in the history
  • Loading branch information
SeanLee97 committed Sep 30, 2024
1 parent 3b205f6 commit 959bf1b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion angle_emb/angle.py
Original file line number Diff line number Diff line change
Expand Up @@ -861,7 +861,7 @@ def compute_loss(self, model, inputs, return_outputs=False):

def prediction_step(self, model, inputs, *args, **kwargs):
kwargs.pop('prediction_loss_only', None)
inputs['labels'] = None # avoid evaluation error
inputs.pop('labels', None)
return super().prediction_step(model, inputs, prediction_loss_only=True, **kwargs)


Expand Down

0 comments on commit 959bf1b

Please sign in to comment.