How to specify VsiNpu as Computational Backend for a custom built C/C++ application on NXP i.MX8

cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 

How to specify VsiNpu as Computational Backend for a custom built C/C++ application on NXP i.MX8

1,645 Views
Divya17
Contributor I

Hi, 

     I am trying to execute a custom built C++ application using ARMNN on i.MX8. How to specify it to use VsiNpu as the backend for Computation. Currently it works with CpuAcc Backend where this is specified when creating the context for a specific compute device.

Thanks & Regards,

Divya

     

Labels (1)
0 Kudos
1 Reply

1,362 Views
mbrundler
Contributor II

Hi,

It seems you choose the backend like this (for VsiNpu) before loading the network :

armnn::IOptimizedNetworkPtr optNet = armnn::Optimize(*network, {armnn::Compute::VsiNpu}, runtime->GetDeviceSpec());

Regards

 

0 Kudos