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

An error is always reported when the victim model is xlnet_sst and the data set sample is sst #221

Open
wei1826676931 opened this issue Sep 19, 2021 · 2 comments
Labels
bug Something isn't working Todo Need to do in the future

Comments

@wei1826676931
Copy link

I want to try to use the existing xlnet_sst as the attacked model. Unfortunately, it keep reporting errors. Can you check and try this example?thanks!
image

@wei1826676931 wei1826676931 changed the title An error is always reported when the victim model is xlnet_sst and the data set sample is sst !! An error is always reported when the victim model is xlnet_sst and the data set sample is sst Sep 19, 2021
@a710128
Copy link
Member

a710128 commented Sep 22, 2021

I reproduced the error. This is because XLNET uses the second dimension to represent batch, while most other models use the first dimension.

XLNET: (seq_length, batch_size, hidden_size)
OTHER: (batch_size, seq_length, hidden_size)

We will fix this issue in the next release.

@a710128 a710128 added Todo Need to do in the future bug Something isn't working labels Sep 22, 2021
@a710128 a710128 added this to To do in OpenAttack 2.1.2 Sep 22, 2021
@wei1826676931
Copy link
Author

辛苦了,谢谢~

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Todo Need to do in the future
Projects
Development

No branches or pull requests

2 participants