Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Allow torch tensor inputs for scoring method #132

Open
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

tonywu71
Copy link
Collaborator

@tonywu71 tonywu71 commented Nov 8, 2024

Description

Sometimes, the user already has padded the embeddings he/she wants to score using the processor's score_multi_vector method. Thus, we want to allow him/her to feed this padded and stacked tensor to the latter method, without the need of using torch.unbind.

Feature

Changed

  • Allow inputs of type torch.Tensor for processor's score_multi_vector method

@tonywu71 tonywu71 self-assigned this Nov 8, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant