-
Notifications
You must be signed in to change notification settings - Fork 80
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 with ReLU, inplace_unfold cause the bad shape. #73
Comments
Hi @charnameRed, could you please post your complete error message? |
THX for replying. The error message is as follows:
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Describe the bug
I tried to use auto_LiRPA to verify the robustness of my audio processing model. Unfortunately, when I use
model.compute_bounds
, aRuntimeError: The following operation failed in the TorchScript interpreter.
occurred.The situation directly caused by the unfitted shape of
A_pos
([64, 4, 25, 20, 64, 9, 9]) andd_pos
([1, 4, 24, 19, 64, 9, 9]) inA_new = d_pos * A_pos + d_neg * A_neg
, which happens duringclamp_mutiply_forward
operation. I tried to trace back the cause of this difference, and find something happened in theinplace_unfold
step ofmaybe_unfold_patches
, in therelu.py
.Here follows my code. I make a emulation dataset to provide random data with the same attributes of real data, which are Mel Spectrograms of some audio, to avoid unnecessary uploadings. And I used an adjusted
Resnet18
to extract the features, to make it work correctly on [B, 1, 100, 80] shaped data.To Reproduce
Test Code
Adjusted Resnet
System configuration:
The text was updated successfully, but these errors were encountered: