Code Monkey home page Code Monkey logo

Comments (6)

ZizhouJia avatar ZizhouJia commented on June 8, 2024

Show me the source code, I will check where the error is.

from torch-model-compression.

gdh1995 avatar gdh1995 commented on June 8, 2024

Hello, you may try the patch in https://github.com/THU-MIG/torch-model-compression/pull/6/files#diff-cd7d0b02724faaf1716aee410c2cc83b91a053f1f6e8dc9475761156a69a6286R50-R52

from torch-model-compression.

gdh1995 avatar gdh1995 commented on June 8, 2024

I've merged #6, so you may run git pull on your local repo and reinstall it.

from torch-model-compression.

PuNeal avatar PuNeal commented on June 8, 2024

I've merged #6, so you may run git pull on your local repo and reinstall it.

Thanks for your in-time reply. I tried to pull the latest code and retrain, but got such error message:

Traceback (most recent call last):
File "tasks/prune_helmet.py", line 158, in
solver.run()
File "/home/bengui/miniconda3/envs/torch1.7/lib/python3.6/site-packages/torchpruner-0.0.1-py3.6.egg/torchslim/slim_solver.py", line 327, in run
File "/home/bengui/miniconda3/envs/torch1.7/lib/python3.6/site-packages/torch/optim/lr_scheduler.py", line 67, in wrapper
return wrapped(*args, **kwargs)
File "/home/bengui/miniconda3/envs/torch1.7/lib/python3.6/site-packages/torch/autograd/grad_mode.py", line 26, in decorate_context
return func(*args, **kwargs)
File "/home/bengui/miniconda3/envs/torch1.7/lib/python3.6/site-packages/torch/optim/sgd.py", line 106, in step
buf.mul_(momentum).add_(d_p, alpha=1 - dampening)
RuntimeError: The size of tensor a (96) must match the size of tensor b (88) at non-singleton dimension 0

from torch-model-compression.

ZizhouJia avatar ZizhouJia commented on June 8, 2024

pull the latest code, and try it again. The error has been fixed.

from torch-model-compression.

PuNeal avatar PuNeal commented on June 8, 2024

pull the latest code, and try it again. The error has been fixed.

I tried it again and the error had been fixed.

from torch-model-compression.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.