Skip to content

Commit

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

return (loss, outputs) if return_outputs else loss

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

Expand Down

0 comments on commit 3b205f6

Please sign in to comment.