FAQ
Q & A
Q: How do I install a specific version of the AidLite inference SDK for QNN?
A: AidLite SDK provides multiple versions for different QNN releases. Developers can install a specific version using the following commands (taking QNN 2.16 as an example):
bash
sudo aid-pkg update
# Install AidLite QNN2.16 version
sudo aid-pkg install aidlite-qnn216
Q: Which version of QNN is installed with the command aid-pkg install aidlite
?
A: Running the command aid-pkg install aidlite
will install the latest version of QNN by default.
Q: Can multiple versions of AidLite coexist? How can I check which versions are installed?
A: Yes, AidLite supports multiple versions to coexist.
- You can install multiple versions of AidLite using the command
aid-pkg install aidlite-{QNN-Version}
- You can list all installed versions of AidLite using the command
aid-pkg -l
Q: Does a QNN model downloaded from Model Farm require the exact matching version of AidLite for inference?
A: In general, QNN versions are backward compatible. For example, you can use AidLite-QNN2.31 to run inference on a model built for QNN2.16. However, if inference issues occur, it is recommended to use the matching version for compatibility.
Q: After installing multiple versions of the AidLite SDK for QNN, how can I specify which QNN version to use for inference?
A: You can specify the QNN version through the AidLite SDK interface. Below is an example using the Python API:
python
config.framework_type = aidlite.FrameworkType.TYPE_QNN216
python
# This means the latest installed version will be used for inference
config.framework_type = aidlite.FrameworkType.TYPE_QNN
For more details, please refer to: