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

cnnexamples fails #17

Open
jamborta opened this issue May 5, 2015 · 7 comments
Open

cnnexamples fails #17

jamborta opened this issue May 5, 2015 · 7 comments

Comments

@jamborta
Copy link

jamborta commented May 5, 2015

Hi Sergey,

thank you for sharing this code.

I am trying to run one of your examples ( the cpu version of it), but it fails with the following error:

Error using genweights_mex
Assertion Failed: In 'mexGetScalar' mx_array is not numeric

Error in genweights (line 4)
weights = genweights_mex(layers, params);

Error in cnnexamples (line 82)
weights = single(genweights(layers, params, funtype));

looks like the signature of genweights_mex changed?

@sdemyanov
Copy link
Owner

Hi,

nothing changed, everything should work. Check again the arguments you are passing. If not, send the code you are running, I'll check it.

Sergey.

@TrungNg
Copy link

TrungNg commented May 20, 2015

Hi, this question is originated from the very first step, so I'd like to post it in the same topic here.
in the settings.h file:
// COMP_REGIME = 1 -> MULTITHREAD CPU
do you mean multithread GPU? is this option faster than the option 2? (Sr, I'm newbie to CUDA)

@TrungNg
Copy link

TrungNg commented May 20, 2015

where can i find "compile" script? is it Makefile? or compile.m? if it's compile.m, what parameters should I pass to compile?

@sdemyanov
Copy link
Owner

"do you mean multithread GPU?" No, I mean multithread CPU.

@sdemyanov
Copy link
Owner

"where can i find "compile" script? is it Makefile? or compile.m? if it's compile.m, what parameters should I pass to compile?"

Makefile is for compiling the GPU version on Linux.
compile.m is for compiling all versions (1-CPU, 2-multithread CPU, 3-GPU) on both Windows and Linux. The parameter is the number of version.

@HosnaCSE
Copy link

Hello,

I get the same error during the compilation of your code.

Error using genweights_mex
Assertion Failed: In 'mexGetScalar' mx_array is not numeric

Error in genweights (line 4)
weights = genweights_mex(layers, params);

Error in cnnexamples (line 82)
weights = single(genweights(layers, params, funtype));

Can you help me out there?

@YaoJUN94
Copy link

@HosnaCSE did you solve your problem? May I know how u solve it??

Thank you.

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

5 participants