-
Notifications
You must be signed in to change notification settings - Fork 202
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
prune error:dimension out of range (expected to be in range of [-2, 1], but got 3) #12
Comments
Hi! How did you solve it? |
Hi! |
@longriyao @Kuldeep-Attri |
Thanks!!! @hewumars |
Hi @hewumars
The next error I am getting in prune.py in line 33
Before that, I am getting following intermediate output
Please suggest how can I fix this problem |
the origin code use python2,if you use 3,please notice the difference between the two versions. |
I do not know where your problem is. |
Python 2.7.13 I am writing all the massage which I have received while running
Is it because of ambiguous value in Layers that will be prunned? |
@RohitKeshari |
@RohitKeshari step debug and print variable can be solve the problem , because your input param is error. |
Thanks @hewumars, in place conv.bias It should have True. It works for me |
Hi,I run the python finetune.py --train |
@RohitKeshari where did you add the modify code? |
@tearhupo121031 what is your problem? please post the error message here. Are you using the same database? If you are using a different database then it might be the case that database is easy. |
just delete the last line to this: if not next_conv is None: |
Python 3 Python 2.7 You can either use Python 2.7 or list(model.features._modules.items()) |
error dimension out of range
values =
torch.sum((activation * grad), dim = 0).
sum(dim=2).sum(dim=3)[0, :, 0, 0].data
The text was updated successfully, but these errors were encountered: