Skip to content

Commit

Permalink
No mask in indexer forward (#2)
Browse files Browse the repository at this point in the history
  • Loading branch information
clee2000 authored Feb 7, 2024
1 parent 0485c9f commit befeda4
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion indexer.py
Original file line number Diff line number Diff line change
Expand Up @@ -96,7 +96,7 @@ def index(self):
# inputs, output_hidden_states=True
# )
_, embedding = self.model.forward(
tokens, 0, output_last_hidden_state=True, mask=attn_mask
tokens, 0, output_last_hidden_state=True
)
del attn_mask
del tokens
Expand Down

0 comments on commit befeda4

Please sign in to comment.