Skip to content

Commit

Permalink
bugfix: tuple -> list
Browse files Browse the repository at this point in the history
  • Loading branch information
Sean Lee authored and Sean Lee committed Jan 11, 2025
1 parent 07f236b commit 18af7f3
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 @@ -716,7 +716,7 @@ def __call__(self,
outputs = ret.last_hidden_state
else:
ret = self.model(output_hidden_states=True, return_dict=True, **inputs)
all_layer_outputs = ret.hidden_states
all_layer_outputs = list(ret.hidden_states)
all_layer_outputs[-1] = ret.last_hidden_state
if return_all_layer_outputs:
return (all_layer_outputs, ret.logits) if return_mlm_logits else all_layer_outputs
Expand Down

0 comments on commit 18af7f3

Please sign in to comment.