Skip to content

Instantly share code, notes, and snippets.

@JoostvDoorn
Created January 17, 2017 13:42
Show Gist options
  • Save JoostvDoorn/153726c3ec99a7b2d01be86ce0a2f1cd to your computer and use it in GitHub Desktop.
Save JoostvDoorn/153726c3ec99a7b2d01be86ce0a2f1cd to your computer and use it in GitHub Desktop.
Install torch 1.0-0

Troubleshooting cutorch 1.0-0 and cunn 1.0-0

When running code that requires cutorch 1.0-0 and cunn 1.0-0 then you might come accross some issues with type errors. Since there are no tags for other packages such as nn, over time compatiblity with the 1.0-0 version will dwindle unless you checkout specificly checkout an old version. Here are some instructions that helped in my case.

Here are some quick tips that might help.

Install torch normally.

Install old version of cutorch and cunn.

luarocks install cutorch 1.0-0
luarocks install cunn 1.0-0

If you know the code should work and get an error in a nn module while running the code (like LookupTable), then install an old version of nn:

git clone https://github.com/torch/nn
cd nn
git checkout fa732f5358f3e87a3dbeb0fff89a307e5a7b972c
luarocks make rocks/nn-scm-1.rockspec

If the same problem occurs with other packages that look for the last version from before 29 Jul 2016.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment