torch / rnn

Torch recurrent neural networks
BSD 3-Clause "New" or "Revised" License
64 stars 17 forks source link

unknown Torch class <nn.LinearNoBias> #39

Open uprightws opened 7 years ago

uprightws commented 7 years ago

I've updated the RNN model by "luarocks install rnn". When I test my per-train model trained with “Element-Research rnn” ,I got unknown Torch class Please give me some suggestions. Thank you very much.

tastyminerals commented 6 years ago

Same issue, I have models based on Element-Research/rnn code that contains LinearNoBias and custom GRU layers that inherit from AbstractRecurrent which now requires stepmodule to be of nn.Module instance. I am trying to understand what the devs changed right now but it is a complete utter mess and compatibility breakage of both my thesis models and the work I was doing using the older Torch version.

tastyminerals commented 6 years ago

Ok, to fix your issue rollback to older and deprecated Element-Research version

git clone https://github.com/Element-Research/rnn.git
cd rnn
luarocks make rocks/rnn-scm-1.rockspec
Trojahn commented 5 years ago

Same issue². I would appreciate a tool to export pre-trained “Element-Research rnn” networks to the current rnn repo version.