-
Notifications
You must be signed in to change notification settings - Fork 55
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
unknown Torch class <nn.LinearNoBias> #70
Comments
You get this error message because when receiving the data in the thread, it does not know what are the objects you are sending him. You should |
Thanks for the help. /Users/chenyu/torch/install/bin/luajit: ...s/chenyu/torch/install/share/lua/5.1/threads/threads.lua:183: [thread 2 callback] parallel-train.lua:454: module ' Thanks, On Aug 16, 2016, at 5:49 AM, albanD <[email protected]mailto:[email protected]> wrote: You get this error message because when receiving the data in the thread, it does not know what are the objects you are sending him. You should require all necessary libraries inside the threads before using them. You can easily do this in the initialization function when creating the thread pool (see doc herehttps://urldefense.proofpoint.com/v2/url?u=https-3A__github.com_torch_threads-23threadsthreadsnf1f2&d=CwMFaQ&c=imBPVzF25OnBgGmVOlcsiEgHoG1i6YHLR0Sj_gZ4adc&r=17sDuGpCLWOErAUEqb2yxA&m=ptaKEGx-VitM-aOOgbASIdLfSvUvaF6zOmzGoj1iowE&s=YPIO1ZJp8uE55nH7qk8pLfIL1OyHffk5Js8hPeGhKkQ&e=). — |
HI, If the script is in the current directory, have you tried |
That solved the problem perfectly. Thanks for the help, On Aug 16, 2016, at 10:52 AM, albanD <[email protected]mailto:[email protected]> wrote: HI, If the script is in the current directory, have you tried require('util') ? I think the .lua is appended automatically — |
When I try to use Threads with a lstm model, I met this when running the code.
Do anyone know why this happens?
Thanks for the reply in advance
The text was updated successfully, but these errors were encountered: