Closed tastyminerals closed 7 years ago
Ok, ba937a08f26e116db98b5cd6a690f49ea8f8316e commit explains everything. Merging of Element-Research to torch/rnn. So, now if you install Torch, luarocks will be pulling files from torch/rnn which contains a lot of changes and will break your models if they were based on Element-Research/rnn branch, so in order to prevent this either refactor your code (which is not a solution at least for me because there is a lot, a lot of work) or continue using this repo.
So, if you one of those ppl who decided that it is a good time to update your Torch distro and found out that your older code does not work anymore do the following:
git clone https://github.com/Element-Research/rnn.git
cd rnn
luarocks make rocks/rnn-scm-1.rockspec
This should fix your problems. But you eventually do need to refactor your models or any custom layers you've implemented. Thank you devs!
@tastyminerals shouldn't it be?
luarocks make rocks/rnn-scm-1.rockspec
I have just reinstalled Torch with its corresponding rnn and dpnn packages and my model call
th main.lua
which ran without issues before started throwing the following errors:or after commenting out
require('rnn.SpatialGlimpse')
frominit.lua
:I checked recent commits but could not find whether somebody modified rnn
init.lua
so I guess something went wrong during installation vialuarocks
.UPDATE: It looks like
/home/pavel/torch/install/share/lua/5.1/rnn/init.lua
is different from what is currently in master... but why? I performed fresh Torch installation via./install.sh
and then I installed rnn and dpnn via~/torch/install/bin/luarocks
binary same way I did many times before.UPDATE: I managed to run my model by commenting out
require "dpnn"
frommain.lua
. This is obviously a temp solution. The dpnn and rnninit.lua
files contain similar class instantiation calls if Torch is installed by default and looks like this issue can be exposed only if dpnn is explicitly imported together with rnn.@nicholas-leonard, @jnhwkim can you please check this out whenever you have a spare minute?