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

剪枝程序vggprune.py遇见的问题 #8

Open
xuemo188 opened this issue Sep 19, 2019 · 2 comments
Open

剪枝程序vggprune.py遇见的问题 #8

xuemo188 opened this issue Sep 19, 2019 · 2 comments

Comments

@xuemo188
Copy link

Traceback (most recent call last):
File "vggprune.py", line 73, in
mask = weight_copy.gt(thre).float().cuda()
RuntimeError: Expected object of type torch.cuda.FloatTensor but found type torch.FloatTensor for argument #2 'other'
我用的环境是python3.6 torch0.4.1

@Thea1
Copy link

Thea1 commented Nov 30, 2019

Have you solved the problem? I encountered the same problem as you.

@YuQi9797
Copy link

YuQi9797 commented Jul 9, 2020

Have you solved the problem? I encountered the same problem as you.

你们需要将其前面的thre变成cuda() 即 thre.cuda(),后再进行该mask的计算。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants