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

nn.test() fails: Kmeans - invalid arguments (CudaLongTensor) #1311

Open
abachaa opened this issue Apr 26, 2018 · 0 comments
Open

nn.test() fails: Kmeans - invalid arguments (CudaLongTensor) #1311

abachaa opened this issue Apr 26, 2018 · 0 comments

Comments

@abachaa
Copy link

abachaa commented Apr 26, 2018

Hi, I installed cltorch on Ubuntu 16.04 using this distro https://github.com/hughperkins/distro-cl
as luarocks install cltorch is no longer supported.

I got this error when I run nn.test():
luajit -l nn -e 'nn.test()'

/.luarocks/share/lua/5.1/nn/Kmeans.lua:147: invalid arguments: CudaTensor CudaLongTensor CudaTensor number
expected arguments: CudaTensor | [CudaTensor] [CudaTensor] CudaTensor index

=> I updated torch and nn, but it doesn't solve the problem:
luarocks install torch && luarocks install nn

Any suggestions?
Thanks!

stack traceback:
[C]: in function 'min'
.luarocks/share/lua/5.1/nn/Kmeans.lua:147: in function 'forward'
.luarocks/share/lua/5.1/nn/test.lua:8763: in function < .luarocks/share/lua/5.1/nn/test.lua:8717>
[C]: in function 'xpcall'
.luarocks/share/lua/5.1/torch/Tester.lua:477: in function '_pcall'
.luarocks/share/lua/5.1/torch/Tester.lua:436: in function '_run'
.luarocks/share/lua/5.1/torch/Tester.lua:355: in function 'run'
.luarocks/share/lua/5.1/nn/test.lua:9117: in function 'test'
(command line):1: in main chunk
[C]: at 0x00405e90

luajit: .luarocks/share/lua/5.1/torch/Tester.lua:363: An error was found while running tests!
stack traceback:
[C]: in function 'assert'
.luarocks/share/lua/5.1/torch/Tester.lua:363: in function 'run'
.luarocks/share/lua/5.1/nn/test.lua:9117: in function 'test'
(command line):1: in main chunk
[C]: at 0x00405e90

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

1 participant