Code Generation for Deep Learning Networks with ARM Compute Library_Help
1 回表示 (過去 30 日間)
古いコメントを表示
krishna mohan
2019 年 7 月 22 日
コメント済み: krishna mohan
2019 年 8 月 7 日
Hi,
This is the code I copied from (https://in.mathworks.com/help/coder/ug/code-generation-for-deep-learning-networks-with-arm-compute-library.html). It is not executing. Giving error. Please help.
I have installed the following: I am using MATLAB 2019a (version on Windows 10 64bit) I have quadro p1000 GPU. 32 GB RAM. i7 8th Gen.
- MATLAB Coder Interface for Deep Learning Libraries. To install the support package, select it from the MATLAB Add-Ons menu.
- ARM Compute Library for computer vision and machine learning must be installed on the target hardware.
- Deep Learning Toolbox™.
- Environment variables for the compilers and libraries.
My executed Code:
r = raspi('192.168.43.48','pi','raspberry');
cfg = coder.config('exe');
cfg.TargetLang = 'C++';
dlcfg = coder.DeepLearningConfig('arm-compute');
dlcfg.ArmArchitecture = 'armv7';
dlcfg.ArmComputeVersion = '18.03';
cfg.DeepLearningConfig = dlcfg;
hw = coder.hardware('Raspberry Pi');
cfg.Hardware = hw;
buildDir = '~/remoteBuildDir';
cfg.Hardware.BuildDir = buildDir;
cfg.CustomSource = 'main.cpp';
codegen -config cfg squeezenet_raspi_predict.m -args {ones(227, 227, 3,'single')} -report
Output:
>> Untitled6
Deploying code. This may take a few minutes.
??? Unable to locate function 'squeezenet_raspi_predict'.
Code generation failed: View Error Report
Error using codegen
Error in Untitled6 (line 19)
codegen -config cfg squeezenet_raspi_predict.m -args {ones(227, 227, 3,'single')} -report
0 件のコメント
採用された回答
Sahithi Kanumarlapudi
2019 年 8 月 5 日
Your code seems fine and should work properly if you have the ‘MATLAB Support Package for Raspberry Pi Hardware’.
Use the code in the following link to generate code in case you don’t have the support package installed.
その他の回答 (0 件)
参考
カテゴリ
Help Center および File Exchange で Deep Learning Toolbox についてさらに検索
Community Treasure Hunt
Find the treasures in MATLAB Central and discover how the community can help you!
Start Hunting!