-
Notifications
You must be signed in to change notification settings - Fork 95
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
Pruned error #2
Comments
I meet the same error, have you solved it? thanks for your reply |
Not yet, the following error occurred when I used the version of Pytorch 0.1.12: |
@angelamin ,@LXWDL: Did you solve this issue? I'm facing the very same error. I'm on pytorch 0.3.1 |
@LXWDL @angelamin |
@LXWDL @struggle5101 @Coderx7 @angelamin File "prune.py", line 131, in Can anybody help?? |
@naranglovish : Use this port instead. |
i met the same Q |
Thank you for sharing, I encountered the following error in the implementation of the following code,
python prune.py --model model_best.pth.tar --save pruned.pth.tar --percent 0.7
error:
Traceback (most recent call last):
File "prune.py", line 120, in
m1.weight.data = m0.weight.data[idx1].clone()
TypeError: indexing a tensor with an object of type numpy.ndarray. The only supported types are integers, slices, numpy scalars and torch.cuda.LongTensor or torch.cuda.ByteTensor as the only argument.
I am not very familiar with Pytorch, do not know how to solve, can you help me fix this bug? Thanks for your help, I use Python 2.7.14, Pytorch 0.20
The text was updated successfully, but these errors were encountered: