Giter Club home page Giter Club logo

Comments (5)

wenwei202 avatar wenwei202 commented on June 2, 2024

Random sparse neural networks with crs sparse computation are slow. Please use structured sparsity and conv_mode: LOWERED_CCNMM in our deploy protobuf. More details in tutorials.

from caffe.

liaocs2008 avatar liaocs2008 commented on June 2, 2024

Thanks for you reply. The model in this case is the "caffenet_SSL_0.4469.caffemodel", which should be trained with structured sparsity.

I can see cpu speed up (by setting caffe.set_mode_cpu()) using "conv_mode: LOWERED_CCNMM". But I couldn't see speed up on GPU (by setting caffe.set_mode_gpu()) when applying "conv_mode: LOWERED_CSRMM".

Could you help me see the speed up on GPU? Thanks in advance.

from caffe.

jiaqun123 avatar jiaqun123 commented on June 2, 2024

@wenwei202 @liaocs2008
I would like to know whether the command ‘’./build/tools/caffe time -model=xx/xx.protoxtx -weights=xx/xx.caffemodel‘’ can get test time and compute speeded-up.

from caffe.

liaocs2008 avatar liaocs2008 commented on June 2, 2024

@jiaqun123 Using "caffe time" command measures the end to end time of a layer. But I think in this implementation, @wenwei202 measures the time only for matrix multiplication. You can check the python script "examples/caffenet_classifier.py" to measure speedup.

from caffe.

jiaqun123 avatar jiaqun123 commented on June 2, 2024

@liaocs2008
Thanks for your reply。I tried to use examples/cifar10_classifier.py
python examples/cifar10_classifier.py models/cifar10/cifar10_full.prototxt cifar10_full_iter_200000.caffemodel. But I get the the following result and didn't get the time for each conv layer.
image

from caffe.

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.