OpenAttack icon indicating copy to clipboard operation
OpenAttack copied to clipboard

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

Open wei1826676931 opened this issue 2 years ago • 2 comments

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 avatar Sep 19 '21 16:09 wei1826676931

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 avatar Sep 22 '21 07:09 a710128

辛苦了,谢谢~

wei1826676931 avatar Sep 22 '21 07:09 wei1826676931