Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Undefined function 'caffe_' for input arguments of type 'char'. Matlab #84

Open
Socierducode opened this issue May 20, 2016 · 5 comments

Comments

@Socierducode
Copy link

I met such an Matlab error for the classification demo
Undefined function 'caffe_' for input arguments of type 'char'.

Error in is_valid_handle (line 12)
init_key = caffe_('get_init_key');

Error in caffe.Net (line 36)
CHECK(is_valid_handle(hNet_net), 'invalid Net handle');

Error in caffe.get_net (line 28)
net = caffe.Net(hNet);

Error in caffe.Net (line 31)
self = caffe.get_net(varargin{:});

Error in classification_demo (line 88)
net = caffe.Net(net_model, net_weights, phase);

Thank you in advace for your response

@Belinda-great
Copy link

i have the same problem,MATLAB error: This error was detected while a MEX-file was running. If the MEX-file is not an official MathWorks function, please examine its source code
for errors. Please consult the External Interfaces Guide for information
on debugging MEX-files. Can you tell me if you solve it ?

@Socierducode
Copy link
Author

@Belinda-great Sorry not yet, caffe_ works for choosing the gpu core, but not the 'get_init_key', that's weird.

@stoneyang
Copy link

Same problem....

@fslzj
Copy link

fslzj commented Aug 22, 2016

The file "caffe_.mexw64" and "caffe_.lib" is in "..\Build\x64\Release\matcaffe+caffe\private". So you should copy the fold "..\Build\x64\Release\matcaffe+caffe\private" to "..\matlab+caffe\private", or change the path "..\matlab+caffe\private" into "..\Build\x64\Release\matcaffe+caffe" in demo.

@stoneyang
Copy link

Maybe one could see BVLC#4461 for reference.

lunzueta pushed a commit to lunzueta/caffe that referenced this issue Sep 4, 2016
Cleanup docs to reflect multigpu batch change
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants