QNN CPU Predict
Libraries:
Embedded Coder Support Package for Qualcomm Hexagon
Processors /
Hexagon /
QNN
Description
The QNN CPU Predict block predicts responses of a deep learning network represented as a QNN model for the CPU backend of Qualcomm® AI Direct Engine, based on the given input data.
To add the block to your Simulink model, open the model (for example,
myQNNModel), and enter this command at the MATLAB
prompt:
add_block("mwqnnlib/QNN CPU Predict","myQNNModel/QNN CPU Predict")
The QNN CPU Predict block allows you to select a QNN model as a compiled shared object (.so) for running on x86-based host. For the target, you can select a compiled shared object (.so) or .dll that is optimized to run on CPU backend. The Simulink model with this block can be deployed to Qualcomm Android Board that is available as supported board in the support package.
The code generated using this block can be deployed to one of these boards that are available under the Hardware board parameter in Configuration Parameters:
Qualcomm Android Board
Qualcomm Linux Board
The block also provides the option to dequantize outputs to single-precision, if required.
Ports
Input
Output
Parameters
Extended Capabilities
Version History
Introduced in R2025b