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

About negative values in my input sentence embeddings #8

Open
justinwoo97 opened this issue Jan 13, 2023 · 0 comments
Open

About negative values in my input sentence embeddings #8

justinwoo97 opened this issue Jan 13, 2023 · 0 comments

Comments

@justinwoo97
Copy link

justinwoo97 commented Jan 13, 2023

Does FLASHTransformer accept negative values in sentence embedding?
I passed the BERT sentence embedding into the FLASHTransformer, and got the following error:

IndexError: index out of range in self

I then tried the README method:
x = torch.randint(0, 20000, (1, 1024)) <-- works fine
x = torch.randint(-1, 1, (1, 1024)) <-- same error

Thx

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

No branches or pull requests

1 participant