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

Error using LimeSaliency #7

Open
khalilmaachou opened this issue Jul 7, 2023 · 0 comments
Open

Error using LimeSaliency #7

khalilmaachou opened this issue Jul 7, 2023 · 0 comments

Comments

@khalilmaachou
Copy link

khalilmaachou commented Jul 7, 2023

Hello as always thanks for the work you have done,
But i have a question , using the paper's parameters with LimeSaliency there is always an error in the prediction phase, here 👍 output_dict_orig['attentions'] = output_dict_orig['attentions'] * (1 - kept_tokens).float() Link
because the shape of both tensors attention is (1,615) and kept_tokens is (4,827) we can't multiply 615 with 827,
Thank you.

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