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.