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

PReLU tests from test.lua give error #474

Open
wsttiger opened this issue Jun 19, 2017 · 0 comments
Open

PReLU tests from test.lua give error #474

wsttiger opened this issue Jun 19, 2017 · 0 comments

Comments

@wsttiger
Copy link

Downloaded and built torch per the instructions at

http://torch.ch/docs/getting-started.html#_

It appears that the problem is on the host side not the GPU. Just for reference, doing a git log at the root torch directory gives:

commit 5c1d3cfda8101123628a45e70435d545ae1bc771

~/torch/extra/cunn$ th -lcunn -e "nn.testcuda{'PReLU'}"
seed: 	235364849
Running 2 tests
1/2 PReLU_backward ...................................................... [ERROR]
2/2 PReLU_forward ....................................................... [ERROR]
Completed 0 asserts in 2 tests with 0 failures and 2 errors
--------------------------------------------------------------------------------
PReLU_backward
 Function call failed
/home/sthornto/torch/install/share/lua/5.1/nn/THNN.lua:110: Wrong number of input planes. Expected 8 but got 5. at /home/sthornto/torch/extra/nn/lib/THNN/generic/PReLU.c:29
stack traceback:
	[C]: in function 'v'
	/home/sthornto/torch/install/share/lua/5.1/nn/THNN.lua:110: in function 'PReLU_updateOutput'
	/home/sthornto/torch/install/share/lua/5.1/nn/PReLU.lua:12: in function 'forward'
	/home/sthornto/torch/install/share/lua/5.1/cunn/test.lua:5323: in function 'v'
	/home/sthornto/torch/install/share/lua/5.1/cunn/test.lua:6448: in function </home/sthornto/torch/install/share/lua/5.1/cunn/test.lua:6446>
	[C]: in function 'xpcall'
	/home/sthornto/torch/install/share/lua/5.1/torch/Tester.lua:477: in function '_pcall'
	/home/sthornto/torch/install/share/lua/5.1/torch/Tester.lua:436: in function '_run'
	/home/sthornto/torch/install/share/lua/5.1/torch/Tester.lua:355: in function 'run'
	/home/sthornto/torch/install/share/lua/5.1/cunn/test.lua:6469: in function 'testcuda'
	[string "nn.testcuda{'PReLU'}"]:1: in main chunk
	[C]: in function 'pcall'
	...rnto/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:136: in main chunk
	[C]: at 0x00406670

--------------------------------------------------------------------------------
PReLU_forward
 Function call failed
/home/sthornto/torch/install/share/lua/5.1/nn/THNN.lua:110: Wrong number of input planes. Expected 8 but got 3. at /home/sthornto/torch/extra/nn/lib/THNN/generic/PReLU.c:29
stack traceback:
	[C]: in function 'v'
	/home/sthornto/torch/install/share/lua/5.1/nn/THNN.lua:110: in function 'PReLU_updateOutput'
	/home/sthornto/torch/install/share/lua/5.1/nn/PReLU.lua:12: in function 'forward'
	/home/sthornto/torch/install/share/lua/5.1/cunn/test.lua:5297: in function 'v'
	/home/sthornto/torch/install/share/lua/5.1/cunn/test.lua:6448: in function </home/sthornto/torch/install/share/lua/5.1/cunn/test.lua:6446>
	[C]: in function 'xpcall'
	/home/sthornto/torch/install/share/lua/5.1/torch/Tester.lua:477: in function '_pcall'
	/home/sthornto/torch/install/share/lua/5.1/torch/Tester.lua:436: in function '_run'
	/home/sthornto/torch/install/share/lua/5.1/torch/Tester.lua:355: in function 'run'
	/home/sthornto/torch/install/share/lua/5.1/cunn/test.lua:6469: in function 'testcuda'
	[string "nn.testcuda{'PReLU'}"]:1: in main chunk
	[C]: in function 'pcall'
	...rnto/torch/install/lib/luarocks/rocks/trepl/scm-1/bin/th:136: in main chunk
	[C]: at 0x00406670


/home/sthornto/torch/install/share/lua/5.1/torch/Tester.lua:363: An error was found while running tests!

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