Main Content

hexagon.ENPU.getEAIProperties

Read values for properties defined in eAI network file

Since R2025a

Description

hexagon.ENPU.getEAIProperties(EAINetworkFile) reads values of certain properties defined in eAI network file, which is used while creating hexagon.ENPU System object, and returns a structure of values.

Examples

collapse all

Copy the eAI network file to Current Folder in MATLAB, and read the properties.

Use hexagon.ENPU.getEAIProperties function to read the properties from that file.

hexagon.ENPU.getEAIProperties('model_eNPU_on_v3.eai')
ans = 
struct with fields:
               ENPUVersion: 'V3'
     InputLayerTensorCount: 1
    OutputLayerTensorCount: 2
            InputLayerSize: {[1 1 16 16]}
           OutputLayerSize: {[1 10]  [1 10]}
InputLayerDataType: {'int8'}
OutputLayerDataType: {'int8' 'int8'}

Input Arguments

collapse all

Compiled eAI (embedded Artificial Intelligence) model designed for Qualcomm eNPU, specified as a string. The deep learning network represented as an eAI model (eAI network file) is generated using the LPAI SDK Addon for Qualcomm Hexagon® SDK.

If the EAI model is not present in the Current Folder in MATLAB, specify the absolute path along with <filename>.eai

Data Types: string

Version History

Introduced in R2025a