Error: 'The library cudnnApi is not supported by the current target, language or compiler.'
2 次查看(过去 30 天)
显示 更早的评论
How do you solve this? I am making a Simulink Model using a YOLOv2 Detector. I inserted a MATLAB function block and am trying to run the model
![](https://www.mathworks.com/matlabcentral/answers/uploaded_files/272283/image.png)
function targets = roboSubPredict(total_Targets_Possible, img)
%#codegen
%hwobj = jetson;
%w = webcam(hwobj,1);
%d = imageDisplay(hwobj);
targets = 0;
bboxMat = zeros(total_Targets_Possible,4);
%
persistent yolo2Object;
if isempty(yolo2Object)
yolo2Object = coder.loadDeepLearningNetwork('resnet101_10_preprocessed.mat');
% yolo2Object = load('resnet101_10_preprocessed.mat');
end
% grab an image and annotate it
img = imresize(img,[224 224]);
[bboxes,scores,labels] = yolo2Object.detect(img,'Threshold',0.6);
Building the model results in error because it is attempting to use yolo2Object.detect(img,'Threshold',0.6); which uses cudnnApi I think. I already have the prerequisite software downloaded and used them to generate code before. How do I get my compiler 'Microsoft Visual Studio 2019' to use the cudnnApi?
0 个评论
回答(0 个)
另请参阅
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!