qnn.LPAI
Interface to predict responses of deep learning model for QNN LPAI backend
Since R2025b
Description
The qnn.LPAI System object is an interface to predict responses of deep
learning model represented as a QNN context binary for the LPAI backend of Qualcomm® AI Direct Engine.
To create the interface to predict responses of QNN LPAI:
Create the
qnn.LPAIobject and set its properties.Call the object with arguments, as if it were a function.
To learn more about how System objects work, see What Are System Objects?
The code generated using qnn.LPAI System object can be deployed to
Qualcomm Android Board that is available under the Hardware board
parameter in Configuration Parameters.
Creation
Syntax
Description
Windows Host
qnnlpai = qnn.LPAI("BINARY",
creates an interface to predict responses of QNN model (.dll for host and context
binary file (.bin) for target) for the LPAI backend.QNNHostModel=qnnhostmodel.dll,QNNContextBinary=qnncontextbinary.bin)
qnnhtp = qnn.HTP("BINARY",
creates an interface similar to the previous syntax and performs dequantization of
the output..QNNHostModel=qnnhostmodel.dll,QNNContextBinary=qnncontextbinary.bin,DeQuantizeOutput=true)
Linux Host
qnnlpai = qnn.LPAI("BINARY",
creates an interface to predict responses of QNN model (context binary file (.bin)
for the host and the target) for the LPAI backend.QNNContextBinary=qnncontextbinary.bin)
qnnhtp = qnn.HTP("BINARY",
creates an interface similar to the previous syntax and performs dequantization of
the output.QNNContextBinary=qnncontextbinary.bin,DeQuantizeOutput=true)
Properties
Usage
Syntax
Description
predicts responses for QNN LPAI backend using qnnresponse = qnnlpai(x)qnnlpai System object,
based on the input data, x
Instead of calling the System object directly, you can also use the predict function to obtain the response.
Input Arguments
Output Arguments
Object Functions
To use an object function, specify the
System object™ as the first input argument. For
example, to release system resources of a System object named obj, use
this syntax:
release(obj)
Examples
Version History
Introduced in R2025b