Giter VIP home page Giter VIP logo

Comments (6)

clementfarabet avatar clementfarabet commented on June 25, 2024

Had written this code a long time ago, just made a PR for it now:
#153

I don't have a good unit test for it though. If someone can write a quick one that would be great.

from cunn.

JirenJin avatar JirenJin commented on June 25, 2024

@clementfarabet Hi, I really want to use the MultiLabelMarginCriterion on GPU. I have found your fork of cunn, however, I do not know how to use it. I mean I only know installing packages using luarocks install... Could you please tell me how to use your code?

from cunn.

soumith avatar soumith commented on June 25, 2024

hey Jireh,

You can do:

git clone https://github.com/clementfarabet/cunn -b master
cd cunn
luarocks make rocks/cunn-scm-1.rockspec

Then you will get his version of cunn that has GPU MultiLabelMarginCriterion

from cunn.

JirenJin avatar JirenJin commented on June 25, 2024

@soumith Thank you for your reply. However, I just tried exactly the same command you suggested, but failed with this error:

make[1]: *** [CMakeFiles/cunn.dir/all] Error 2
make: *** [all] Error 2

Do you know the possible reasons?
Yesterday I have installed iTorch using the similar way, and succeeded.

from cunn.

Parry26 avatar Parry26 commented on June 25, 2024

I have just tried this and got the same errors above. Please advise.

from cunn.

zhangguoxiao avatar zhangguoxiao commented on June 25, 2024

@soumith I have tried your advice and got the same errors above.any advise?or where can I find the right MultiLabelMarginCriterion.cu?

from cunn.

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.