Quantcast
Channel: Raspberry Pi Forums
Viewing all articles
Browse latest Browse all 8026

Compute Module • Solutions for MATLAB Deep Learning Deployment on Raspberry Pi

$
0
0
During deployment, you may encounter the error
arm_compute/runtime/NEON/NEFunctions.h: No such file or directory
with

Code:

#include "arm_compute/runtime/NEON/NEFunctions.h
. This occurs because the arm_compute_library is missing.

You can follow the installation method described in "MATLAB Coder: How do I build the ARM Compute Library for Deep Learning C++ code generation and deployment?" on MATLAB Answers - MATLAB Central (mathworks.cn) (don't follow these instructions yet, read further below). However, after installation, you will still get the error:
error::make_unique is not a member of 'std
(I've already deployed it, so I won't include a screenshot of the error). After researching, I found this is related to C++14, which made me suspect that the downloaded
arm_compute_library
was too new and different from what MATLAB specifies. So I went to
Releases · ARM-software/ComputeLibrary (github.com)
and downloaded the corresponding version (20.02.1). Then I compiled it following the method in the first link, which takes some time. After completion, you need to rename the
build
folder to
"lib"
, and then add these three lines to the .bashrc file in the same directory level as ComputeLibrary.

Code:

export ARM_COMPUTELIB=~/ComputeLibraryexport PATH=${PATH}:~/ComputeLibraryexport LD_LIBRARY_PATH=${LD_LIBRARY_PATH}:~/ComputeLibrary/lib
All these methods were found on the MATLAB official forum, though one link is no longer accessible. The procedure steps are as described above.

Statistics: Posted by rediy — Mon Mar 10, 2025 11:38 am



Viewing all articles
Browse latest Browse all 8026

Trending Articles