hughperkins / distro-cl

OpenCL Torch
147 stars 17 forks source link

Do rnn and dpnn support? #28

Open sunxfancy opened 7 years ago

sunxfancy commented 7 years ago

I would like to use rnn with torch-cl, but I found dpnn can not be loaded because of the following error:

~/torch-cl/install/share/lua/5.1/torch/init.lua:102: bad argument #2 (invalid parent class name nn.Decorator)

Do rnn and dpnn support by torch-cl? Looking forward to your help. Thanks!

hughperkins commented 7 years ago

cltorch is version-locked to ~February 17th or so last year. That means that other libraries should probably be installed using their state at that time, eg by cloning their repository, using gitk to find a commit hash from around ~Feb 17th 2016, and then rolling back the repository to that time. You should then be able to install using luarocks, from the .rocks file in the repository.

As for your next (likely) question, which is, 'will cltorch ever get updated?', I think that any future work I do personally will likely/almost-certainly use either cuda-on-cl, or some derivative. It means a bit more work initially, but then we basically get the entire functionality, more or less in one go, 'for free', after the initial leg-work has been done; and it should be relatively low-maintenance.

hyiltiz commented 6 years ago

@hughperkins Any recommendations as to how to use torch on top of coriander (cuda-on-cl)? From what you said above, I am thinking that you are trying to focus on using torch with coriander, instead of using this distro-cl. Is that so?