Installing the cunn version from GitHub and using the multilabelmargin criterion

I need to use the multilabelmargin criterion in torch7 to train CNN. This is not supported by the current game. I tried installing a different version of cunn, like here: source

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

However, when I do this, the torch stops working and I get an error:

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

Subsequently, I needed to reinstall torch7 using ezinstall. How to install the cunn version correctly without affecting my torch installation, and therefore use multilabelmargin?

+4
source share

Source: https://habr.com/ru/post/1624699/


All Articles