Skip to content
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.SpatialReplicationPadding> #69

Open
AlexNarbut opened this issue Apr 19, 2017 · 1 comment
Open

unknown Torch class <nn.SpatialReplicationPadding> #69

AlexNarbut opened this issue Apr 19, 2017 · 1 comment

Comments

@AlexNarbut
Copy link

I train on my laptop with Geforce 940m 8gb RAM
My Settings
echo $PATH
/home/alex/torch-cl/install/bin:/usr/local/cuda-8.0/bin:/home/alex/torch/install/bin:/home/alex/torch-cl/install/bin:/home/alex/torch/install/bin:/home/alex/bin:/home/alex/.local/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games:/usr/local/games:/snap/bin
echo $LD_LIBRARY_PATH
/home/alex/torch-cl/install/lib:/usr/local/cuda-8.0/lib64:/home/alex/torch/install/lib:/home/alex/torch-cl/install/lib:/home/alex/torch/install/lib:

My calling
test.lua -input_image karya.jpg -model_t7 model.t7
/home/alex/torch-cl/install/bin/luajit: /home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:334: unknown Torch class <nn.SpatialReplicationPadding>
stack traceback:
[C]: in function 'error'
/home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:334: in function 'readObject'
/home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:360: in function 'readObject'
/home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:360: in function 'readObject'
/home/alex/torch-cl/install/share/lua/5.1/nn/Module.lua:154: in function 'read'
/home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:342: in function 'readObject'
/home/alex/torch-cl/install/share/lua/5.1/torch/File.lua:391: in function 'load'
test.lua:17: in main chunk
[C]: in function 'dofile'
...x/torch-cl/install/lib/luarocks/rocks/trepl/scm-1/bin/th:145: in main chunk
[C]: at 0x00405e90

@DmitryUlyanov
Copy link
Owner

This is very strange, since it is there in nn package. Try to rebuild nn and cunn.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants