IMX 95 NPU not activated

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

IMX 95 NPU not activated

5,165 Views
OlivierG
Contributor III

HI

I use a IMX 95 Verdin Toradex Card a1 (not b0)

I would like to evaluate the NPU

if i launch :
/usr/bin/tensorflow-lite-2.18.0/examples# python3 ./label_image.py --ext_delegate /usr/lib/libneutron_delegate.so

i get the following messages

Error in cpuinfo: prctl(PR_SVE_GET_VL) failed
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.

Is there a connection between these two messages?
Should I conclude that the NPU is not enabled?
What should I do to resolve this issue?

Greetings

Olivier

0 Kudos
Reply
15 Replies

4,627 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Please download eIQ to convert .tflite with Neutron support.

Zhiming_Liu_0-1761024034289.png

The eIQ1.16 is for L6.12.20 Neutron support.

Zhiming_Liu_1-1761024318029.png

For Neutron Converter CLI, please refer eIQ User Guide.

Zhiming_Liu_0-1761024419102.png

 


Best Regards,
Zhiming

0 Kudos
Reply

5,120 Views
OlivierG
Contributor III

hi

on IMX 95 i get

python3 label_image.py --ext_delegate /usr/lib/libneutron_delegate.so

Loading external delegate from libneutron_delegate.so with args: {}
ext_delegate [<tflite_runtime.interpreter.Delegate object at 0xffffa6d52660>]
INFO: NeutronDelegate delegate: 0 nodes delegated out of 31 nodes with 0 partitions.

Error in cpuinfo: prctl(PR_SVE_GET_VL) failed
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Warm-up time: 122.3 ms

Inference time: 118.2 ms

0.870588: military uniform
0.031373: Windsor tie
0.011765: mortarboard
0.007843: bow tie
0.007843: bulletproof vest

 

in comparison, on IMX 93 i get

python3 label_image.py --ext_delegate /usr/lib/libethosu_delegate.so
Loading external delegate from /usr/lib/libethosu_delegate.so with args: {}
INFO: Ethosu delegate: device_name set to /dev/ethosu0.
INFO: Ethosu delegate: cache_file_path set to .
INFO: Ethosu delegate: timeout set to 60000000000.
INFO: Ethosu delegate: enable_cycle_counter set to 0.
INFO: Ethosu delegate: enable_profiling set to 0.
INFO: Ethosu delegate: profiling_buffer_size set to 2048.
INFO: Ethosu delegate: pmu_event0 set to 0.
INFO: Ethosu delegate: pmu_event1 set to 0.
INFO: Ethosu delegate: pmu_event2 set to 0.
INFO: Ethosu delegate: pmu_event3 set to 0.
INFO: EthosuDelegate: 31 nodes delegated out of 31 nodes with 1 partitions.
Warm-up time: 4.1 ms

Inference time: 3.9 ms

0.874510: military uniform
0.031373: Windsor tie
0.015686: mortarboard
0.011765: bulletproof vest
0.007843: bow tie

on  imx 93 there is no message:

INFO: Created TensorFlow Lite XNNPACK delegate for CPU.

The inference time is much shorter  118.2 ms -> 3.9 ms

Olivier

 

0 Kudos
Reply

5,054 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @OlivierG 

Please use older verison with tensorflow 2.16.2, like L6.6.X.

root@imx95frdm:/usr/bin/tensorflow-lite-2.16.2/examples# python3 label_image.py --ext_delegate /usr/lib/libneutron_delegate.so
Loading external delegate from /usr/lib/libneutron_delegate.so with args: {}

INFO: NeutronDelegate delegate: 29 nodes delegated out of 31 nodes with 1 partitions.

INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Warm-up time: 3.9 ms

Inference time: 1.8 ms

0.850980: military uniform
0.058824: Windsor tie
0.011765: bulletproof vest
0.007843: bow tie

There are some issue about NPU delegate even in latest BSP L6.12.34


Best Regards,
Zhiming

0 Kudos
Reply

4,413 Views
min-eta
Contributor II

Hi Zhiming, your reply to this message would seem to indicate that in the older Linux version 6.6.x, to use the NeutronDelegate, you DO NOT need to first use the neutron_converter to convert some of the TFLite Ops in the Model to the custom NeutronGraph.

But for the newer Linux 6.12.x, you DO have to first use neutron_converter to convert the Model first?

@min-eta

min-eta
0 Kudos
Reply

4,362 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @min-eta 

Yes, the software framework has changed since L6.12.y

Best Regards,
Zhiming

0 Kudos
Reply

5,036 Views
OlivierG
Contributor III

HI

i try the folowing python code

import tensorflow as tf

modelpath ='model_yolo_11s_int8_fp32.tflite'

with open(modelpath, 'rb') as fid:
tflite_model = fid.read()

interpreter = tf.lite.Interpreter(model_content=tflite_model,experimental_delegates=[tf.lite.experimental.load_delegate('libneutron_delegate.so')])
interpreter.allocate_tensors()


i get the following error message

/usr/lib/python3.13/site-packages/tensorflow/lite/python/interpreter.py:457: UserWarning: Warning: tf.lite.Interpreter is deprecated and is scheduled for deletion in
TF 2.20. Please use the LiteRT interpreter from the ai_edge_litert package.
See the [migration guide](https://ai.google.dev/edge/litert/migration)
for details.

warnings.warn(_INTERPRETER_DELETION_WARNING)
INFO: NeutronDelegate delegate: 0 nodes delegated out of 339 nodes with 0 partitions.

INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Exception ignored in: <function Delegate.__del__ at 0xffff5171bf60>
Traceback (most recent call last):
File "/usr/lib/python3.13/site-packages/tensorflow/lite/python/interpreter.py", line 122, in __del__
AttributeError: 'NoneType' object has no attribute 'c_void_p'

Does the python code match your answer?
i precise that libethosu_delegate.so is not on my Card

 

Greetings

Olivier

 

0 Kudos
Reply

4,895 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,

Yes, the sw team is investigating this issue.

Best Regards,
Zhiming

0 Kudos
Reply

5,140 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi,


Is there a connection between these two messages?

-->There is no connection about them.


Should I conclude that the NPU is not enabled?

-->If you can see below log, that means NPU delegate is working. 

 

INFO: NeutronDelegate delegate: .......


What should I do to resolve this issue?

-->Can you share full log?

Best Regards,
Zhiming

 

0 Kudos
Reply

4,533 Views
OlivierG
Contributor III

Hi

now, i have a imx95-19x19-lpddr5-evk

The Yocto is
i.MX Linux Yocto Project BSP 6.12.20_2.0.0 Release

When i launch
root@imx95evk:/usr/bin/tensorflow-lite-2.18.0/examples# ./benchmark_model --graph=mobilenet_v1_1.0_224_quant.tflite --external_delegate_path=/usr/lib/libneutron_delegate.so
INFO: STARTING!
INFO: Log parameter values verbosely: [0]
INFO: Graph: [mobilenet_v1_1.0_224_quant.tflite]
INFO: Signature to run: []
INFO: External delegate path: [/usr/lib/libneutron_delegate.so]
INFO: Loaded model mobilenet_v1_1.0_224_quant.tflite
INFO: EXTERNAL delegate created.
INFO: NeutronDelegate delegate: 0 nodes delegated out of 31 nodes with 0 partitions.

INFO: Though EXTERNAL delegate is explicitly applied, the model graph will not be executed by the delegate.
Error in cpuinfo: prctl(PR_SVE_GET_VL) failed
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
INFO: The input model file size (MB): 4.27635
INFO: Initialized session in 56.257ms.
INFO: Running benchmark for at least 1 iterations and at least 0.5 seconds but terminate if exceeding 150 seconds.
INFO: count=5 first=122578 curr=118671 min=118400 max=122578 avg=119396 std=1595

INFO: Running benchmark for at least 50 iterations and at least 1 seconds but terminate if exceeding 150 seconds.
INFO: count=50 first=118459 curr=117971 min=117954 max=118782 avg=118259 std=173

INFO: Inference timings in us: Init: 56257, First inference: 122578, Warmup (avg): 119396, Inference (avg): 118259
INFO: Note: as the benchmark tool itself affects memory footprint, the following is only APPROXIMATE to the actual memory footprint of the model at runtime. Take the information at your discretion.
INFO: Memory footprint delta from the start of the tool (MB): init=12.0352 overall=15.1602


when i launch
cat /sys/class/remoteproc/remoteproc0/state
i get : offline

 

Greetings

 

Olivier

0 Kudos
Reply

4,497 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @OlivierG 

 

Please refer previous reply here.

Zhiming_Liu_0-1761699158616.png

To use NPU in i.MX95, customer need to convert common .tflite to neutron .tflite support with eIQ or neutron converter CLI.

Here you can try this model which i converted with eIQ.



Best Regards,
Zhiming

0 Kudos
Reply

4,443 Views
OlivierG
Contributor III

Hi

When i launch the python sample with the converted file, i get


root@imx95evk:/usr/bin/tensorflow-lite-2.18.0/examples# python3 label_image.py -m mobilenet_v1_1.0_224_quant_converted.tflite
Error in cpuinfo: prctl(PR_SVE_GET_VL) failed
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Traceback (most recent call last):
File "/usr/bin/tensorflow-lite-2.18.0/examples/label_image.py", line 92, in <module>
interpreter.allocate_tensors()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
File "/usr/lib/python3.13/site-packages/tflite_runtime/interpreter.py", line 534, in allocate_tensors
return self._interpreter.AllocateTensors()
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~^^
RuntimeError: Encountered unresolved custom op: NeutronGraph.
See instructions: https://www.tensorflow.org/lite/guide/ops_custom Node number 1 (NeutronGraph) failed to prepare.Encountered unresolved custom op: NeutronGraph.
See instructions: https://www.tensorflow.org/lite/guide/ops_custom Node number 1 (NeutronGraph) failed to prepare.


With the executable version i get
root@imx95evk:/usr/bin/tensorflow-lite-2.18.0/examples# ./label_image -m mobilenet_v1_1.0_224_quant_converted.tflite
INFO: Loaded model mobilenet_v1_1.0_224_quant_converted.tflite
INFO: resolved reporter
Error in cpuinfo: prctl(PR_SVE_GET_VL) failed
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
ERROR: Encountered unresolved custom op: NeutronGraph.
See instructions: https://www.tensorflow.org/lite/guide/ops_custom
ERROR: Node number 1 (NeutronGraph) failed to prepare.
ERROR: Encountered unresolved custom op: NeutronGraph.
See instructions: https://www.tensorflow.org/lite/guide/ops_custom
ERROR: Node number 1 (NeutronGraph) failed to prepare.
ERROR: Failed to allocate tensors!

Greetings 

Olivier

0 Kudos
Reply

4,361 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @OlivierG 

 

Can you try to test with neutron delegate /usr/lib/libneutron_delegate.so ?



Best Regards,
Zhiming

0 Kudos
Reply

4,323 Views
OlivierG
Contributor III

Hi

I build the last version of the yocto kernel imx-6.12.34-2.1.0

when i launch
python3 label_image.py -e /usr/lib/libneutron_delegate.so
i get
Loading external delegate from /usr/lib/libneutron_delegate.so with args: {}
/usr/lib/python3.13/site-packages/tflite_runtime/interpreter.py:457: UserWarning: Warning: tf.lite.Interpreter is deprecated and is scheduled for deletion in
TF 2.20. Please use the LiteRT interpreter from the ai_edge_litert package.
See the [migration guide](https://ai.google.dev/edge/litert/migration)
for details.

warnings.warn(_INTERPRETER_DELETION_WARNING)
INFO: NeutronDelegate delegate: 0 nodes delegated out of 31 nodes with 0 partitions.

INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Warm-up time: 94.5 ms

Inference time: 60.2 ms

0.878431: military uniform
0.027451: Windsor tie
0.011765: mortarboard
0.011765: bulletproof vest
0.007843: sax


i modify the python code to correct the warning

python3 label_image2.py -e /usr/lib/libneutron_delegate.so
i get
Loading external delegate from /usr/lib/libneutron_delegate.so with args: {}
INFO: NeutronDelegate delegate: 0 nodes delegated out of 31 nodes with 0 partitions.

INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
Warm-up time: 58.0 ms

Inference time: 55.5 ms

0.878431: military uniform
0.027451: Windsor tie
0.011765: mortarboard
0.011765: bulletproof vest
0.007843: sax

i always get
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.


i must precise that on IMX95
cat /sys/class/remoteproc/remoteproc0/state
return : offline

The same command on the IMX93 board return : running

 

On IMX95
dmesg | grep remoteproc

return
remoteproc remoteproc0: imx-rproc is available

On IMX93
dmesg | grep remoteproc
return
remoteproc remoteproc0: imx-rproc is available
remoteproc remoteproc0: powering up imx-rproc
remoteproc remoteproc0: Booting fw image ethosu_firmware, size 244744
remoteproc remoteproc0: remote processor imx-rproc is now up

 

i think that the NPU is not activated

Greetings 

Olivier 

 

0 Kudos
Reply

4,322 Views
OlivierG
Contributor III

On IMX95
dmesg | grep remoteproc

return
remoteproc remoteproc0: neutron-rproc is available
remoteproc remoteproc1: imx-rproc is available
remoteproc remoteproc1: attaching to imx-rproc
remoteproc remoteproc1: remote processor imx-rproc is now attached


remoteproc remoteproc0: powering up neutron-rproc
remoteproc remoteproc0: Booting fw image NeutronFirmware.elf, size 66896
remoteproc remoteproc0: remote processor neutron-rproc is now up
remoteproc remoteproc0: stopped remote processor neutron-rproc


remoteproc remoteproc0: powering up neutron-rproc
remoteproc remoteproc0: Booting fw image NeutronFirmware.elf, size 66896
remoteproc remoteproc0: remote processor neutron-rproc is now up
remoteproc remoteproc0: stopped remote processor neutron-rproc

0 Kudos
Reply

4,206 Views
Zhiming_Liu
NXP TechSupport
NXP TechSupport

Hi @OlivierG 

Please try to use this model in attachment, this model is converted from L6.12.34 neutron converter.

root@imx95evk:/usr/bin/tensorflow-lite-2.19.0/examples# ./label_image -m mobilenet_v1_1.0_224_int8_converted.tflite --external_delegate_path=/lib/libneutron_delegate.so -i grace_hopper.bmp -l labels.txt
INFO: Loaded model mobilenet_v1_1.0_224_int8_converted.tflite
INFO: resolved reporter
INFO: EXTERNAL delegate created.
INFO: NeutronDelegate delegate: 1 nodes delegated out of 4 nodes with 1 partitions.

INFO: Neutron delegate version: v1.0.0-be8bf399, zerocp enabled.
INFO: Applied EXTERNAL delegate.
INFO: Created TensorFlow Lite XNNPACK delegate for CPU.
INFO: invoked
INFO: average time: 1.388 ms
INFO: 0.756863: 653 military uniform
INFO: 0.145098: 907 Windsor tie
INFO: 0.0156863: 458 bow tie
INFO: 0.0117647: 466 bulletproof vest
INFO: 0.00784314: 835 suit


Best Regards,
Zhiming

0 Kudos
Reply
%3CLINGO-SUB%20id%3D%22lingo-sub-2175643%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3EIMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2175643%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHI%3C%2FP%3E%3CP%3EI%20use%20a%20IMX%2095%20Verdin%20Toradex%20Card%20a1%20(not%20b0)%3C%2FP%3E%3CP%3EI%20would%20like%20to%20evaluate%20the%20NPU%3C%2FP%3E%3CP%3Eif%20i%20launch%20%3A%3CBR%20%2F%3E%2Fusr%2Fbin%2Ftensorflow-lite-2.18.0%2Fexamples%23%20python3%20.%2Flabel_image.py%20--ext_delegate%20%2Fusr%2Flib%2Flibneutron_delegate.so%3C%2FP%3E%3CP%3Ei%20get%20the%20following%20messages%3C%2FP%3E%3CP%3E%3CEM%3EError%20in%20cpuinfo%3A%20prctl(PR_SVE_GET_VL)%20failed%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3C%2FEM%3E%3C%2FP%3E%3CP%3EIs%20there%20a%20connection%20between%20these%20two%20messages%3F%3CBR%20%2F%3EShould%20I%20conclude%20that%20the%20NPU%20is%20not%20enabled%3F%3CBR%20%2F%3EWhat%20should%20I%20do%20to%20resolve%20this%20issue%3F%3C%2FP%3E%3CP%3EGreetings%3C%2FP%3E%3CP%3EOlivier%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2196397%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2196397%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F245939%22%20target%3D%22_blank%22%3E%40OlivierG%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EPlease%20try%20to%20use%20this%20model%20in%20attachment%2C%20this%20model%20is%20converted%20from%20L6.12.34%20neutron%20converter.%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eroot%40imx95evk%3A%2Fusr%2Fbin%2Ftensorflow-lite-2.19.0%2Fexamples%23%20.%2Flabel_image%20-m%20mobilenet_v1_1.0_224_int8_converted.tflite%20--external_delegate_path%3D%2Flib%2Flibneutron_delegate.so%20-i%20grace_hopper.bmp%20-l%20labels.txt%0AINFO%3A%20Loaded%20model%20mobilenet_v1_1.0_224_int8_converted.tflite%0AINFO%3A%20resolved%20reporter%0AINFO%3A%20EXTERNAL%20delegate%20created.%0AINFO%3A%20NeutronDelegate%20delegate%3A%201%20nodes%20delegated%20out%20of%204%20nodes%20with%201%20partitions.%0A%0AINFO%3A%20Neutron%20delegate%20version%3A%20v1.0.0-be8bf399%2C%20zerocp%20enabled.%0AINFO%3A%20Applied%20EXTERNAL%20delegate.%0AINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%0AINFO%3A%20invoked%0AINFO%3A%20average%20time%3A%201.388%20ms%0AINFO%3A%200.756863%3A%20653%20military%20uniform%0AINFO%3A%200.145098%3A%20907%20Windsor%20tie%0AINFO%3A%200.0156863%3A%20458%20bow%20tie%0AINFO%3A%200.0117647%3A%20466%20bulletproof%20vest%0AINFO%3A%200.00784314%3A%20835%20suit%0A%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2195638%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2195638%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EOn%20IMX95%3CBR%20%2F%3Edmesg%20%7C%20grep%20remoteproc%3C%2FP%3E%3CP%3Ereturn%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20neutron-rproc%20is%20available%3CBR%20%2F%3Eremoteproc%20remoteproc1%3A%20imx-rproc%20is%20available%3CBR%20%2F%3Eremoteproc%20remoteproc1%3A%20attaching%20to%20imx-rproc%3CBR%20%2F%3Eremoteproc%20remoteproc1%3A%20remote%20processor%20imx-rproc%20is%20now%20attached%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20powering%20up%20neutron-rproc%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20Booting%20fw%20image%20NeutronFirmware.elf%2C%20size%2066896%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20remote%20processor%20neutron-rproc%20is%20now%20up%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20stopped%20remote%20processor%20neutron-rproc%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20powering%20up%20neutron-rproc%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20Booting%20fw%20image%20NeutronFirmware.elf%2C%20size%2066896%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20remote%20processor%20neutron-rproc%20is%20now%20up%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20stopped%20remote%20processor%20neutron-rproc%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2195637%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2195637%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EI%20build%20the%20last%20version%20of%20the%20yocto%20kernel%20imx-6.12.34-2.1.0%3C%2FP%3E%3CP%3Ewhen%20i%20launch%3CBR%20%2F%3Epython3%20label_image.py%20-e%20%2Fusr%2Flib%2Flibneutron_delegate.so%3CBR%20%2F%3Ei%20get%3CBR%20%2F%3ELoading%20external%20delegate%20from%20%2Fusr%2Flib%2Flibneutron_delegate.so%20with%20args%3A%20%7B%7D%3CBR%20%2F%3E%2Fusr%2Flib%2Fpython3.13%2Fsite-packages%2Ftflite_runtime%2Finterpreter.py%3A457%3A%20UserWarning%3A%20Warning%3A%20tf.lite.Interpreter%20is%20deprecated%20and%20is%20scheduled%20for%20deletion%20in%3CBR%20%2F%3ETF%202.20.%20Please%20use%20the%20LiteRT%20interpreter%20from%20the%20ai_edge_litert%20package.%3CBR%20%2F%3ESee%20the%20%5Bmigration%20guide%5D(%3CA%20href%3D%22https%3A%2F%2Fai.google.dev%2Fedge%2Flitert%2Fmigration%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fai.google.dev%2Fedge%2Flitert%2Fmigration%3C%2FA%3E)%3CBR%20%2F%3Efor%20details.%3CBR%20%2F%3E%3CBR%20%2F%3Ewarnings.warn(_INTERPRETER_DELETION_WARNING)%3CBR%20%2F%3EINFO%3A%20NeutronDelegate%20delegate%3A%200%20nodes%20delegated%20out%20of%2031%20nodes%20with%200%20partitions.%3C%2FP%3E%3CP%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3CBR%20%2F%3EWarm-up%20time%3A%2094.5%20ms%3C%2FP%3E%3CP%3EInference%20time%3A%2060.2%20ms%3C%2FP%3E%3CP%3E0.878431%3A%20military%20uniform%3CBR%20%2F%3E0.027451%3A%20Windsor%20tie%3CBR%20%2F%3E0.011765%3A%20mortarboard%3CBR%20%2F%3E0.011765%3A%20bulletproof%20vest%3CBR%20%2F%3E0.007843%3A%20sax%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Ei%20modify%20the%20python%20code%20to%20correct%20the%20warning%3C%2FP%3E%3CP%3Epython3%20label_image2.py%20-e%20%2Fusr%2Flib%2Flibneutron_delegate.so%3CBR%20%2F%3Ei%20get%3CBR%20%2F%3ELoading%20external%20delegate%20from%20%2Fusr%2Flib%2Flibneutron_delegate.so%20with%20args%3A%20%7B%7D%3CBR%20%2F%3EINFO%3A%20NeutronDelegate%20delegate%3A%200%20nodes%20delegated%20out%20of%2031%20nodes%20with%200%20partitions.%3C%2FP%3E%3CP%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3CBR%20%2F%3EWarm-up%20time%3A%2058.0%20ms%3C%2FP%3E%3CP%3EInference%20time%3A%2055.5%20ms%3C%2FP%3E%3CP%3E0.878431%3A%20military%20uniform%3CBR%20%2F%3E0.027451%3A%20Windsor%20tie%3CBR%20%2F%3E0.011765%3A%20mortarboard%3CBR%20%2F%3E0.011765%3A%20bulletproof%20vest%3CBR%20%2F%3E0.007843%3A%20sax%3C%2FP%3E%3CP%3Ei%20always%20get%3CBR%20%2F%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Ei%20must%20precise%20that%20on%20%3CSTRONG%3EIMX95%3C%2FSTRONG%3E%3CBR%20%2F%3Ecat%20%2Fsys%2Fclass%2Fremoteproc%2Fremoteproc0%2Fstate%3CBR%20%2F%3Ereturn%20%3A%20%3CSTRONG%3Eoffline%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3EThe%20same%20command%20on%20the%20%3CSTRONG%3EIMX93%3C%2FSTRONG%3E%20board%20return%20%3A%20%3CSTRONG%3Erunning%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3E%3CSTRONG%3EOn%20IMX95%3C%2FSTRONG%3E%3CBR%20%2F%3Edmesg%20%7C%20grep%20remoteproc%3C%2FP%3E%3CP%3Ereturn%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20imx-rproc%20is%20available%3C%2FP%3E%3CP%3E%3CSTRONG%3EOn%20IMX93%3C%2FSTRONG%3E%3CBR%20%2F%3Edmesg%20%7C%20grep%20remoteproc%3CBR%20%2F%3Ereturn%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20imx-rproc%20is%20available%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20powering%20up%20imx-rproc%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20Booting%20fw%20image%20ethosu_firmware%2C%20size%20244744%3CBR%20%2F%3Eremoteproc%20remoteproc0%3A%20remote%20processor%20imx-rproc%20is%20now%20up%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ei%20think%20that%20the%20NPU%20is%20not%20activated%3C%2FP%3E%3CP%3EGreetings%26nbsp%3B%3C%2FP%3E%3CP%3EOlivier%26nbsp%3B%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2195313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2195313%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F245939%22%20target%3D%22_blank%22%3E%40OlivierG%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3ECan%20you%20try%20to%20test%20with%20neutron%20delegate%26nbsp%3B%3CEM%3E%2Fusr%2Flib%2Flibneutron_delegate.so%20%3F%3C%2FEM%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2195312%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2195312%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F224771%22%20target%3D%22_blank%22%3E%40min-eta%3C%2FA%3E%26nbsp%3B%3CBR%20%2F%3E%3CBR%20%2F%3EYes%2C%20the%20software%20framework%20has%20changed%20since%20L6.12.y%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2195069%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2195069%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%20Zhiming%2C%20your%20reply%20to%20this%20message%20would%20seem%20to%20indicate%20that%20in%20the%20older%20Linux%20version%206.6.x%2C%20to%20use%20the%20NeutronDelegate%2C%20you%20DO%20NOT%20need%20to%20first%20use%20the%20neutron_converter%20to%20convert%20some%20of%20the%20TFLite%20Ops%20in%20the%20Model%20to%20the%20custom%20NeutronGraph.%3C%2FP%3E%3CP%3EBut%20for%20the%20newer%20Linux%206.12.x%2C%20you%20DO%20have%20to%20first%20use%20neutron_converter%20to%20convert%20the%20Model%20first%3F%3C%2FP%3E%3CP%3E%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F224771%22%20target%3D%22_blank%22%3E%40min-eta%3C%2FA%3E%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194948%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3EWhen%20i%20launch%20the%20python%20sample%20with%20the%20converted%20file%2C%20i%20get%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Eroot%40imx95evk%3A%2Fusr%2Fbin%2Ftensorflow-lite-2.18.0%2Fexamples%23%20python3%20label_image.py%20-m%20mobilenet_v1_1.0_224_quant_converted.tflite%3CBR%20%2F%3EError%20in%20cpuinfo%3A%20prctl(PR_SVE_GET_VL)%20failed%3CBR%20%2F%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3CBR%20%2F%3ETraceback%20(most%20recent%20call%20last)%3A%3CBR%20%2F%3EFile%20%22%2Fusr%2Fbin%2Ftensorflow-lite-2.18.0%2Fexamples%2Flabel_image.py%22%2C%20line%2092%2C%20in%20%3CMODULE%3E%3CBR%20%2F%3Einterpreter.allocate_tensors()%3CBR%20%2F%3E~~~~~~~~~~~~~~~~~~~~~~~~~~~~%5E%5E%3CBR%20%2F%3EFile%20%22%2Fusr%2Flib%2Fpython3.13%2Fsite-packages%2Ftflite_runtime%2Finterpreter.py%22%2C%20line%20534%2C%20in%20allocate_tensors%3CBR%20%2F%3Ereturn%20self._interpreter.AllocateTensors()%3CBR%20%2F%3E~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~%5E%5E%3CBR%20%2F%3ERuntimeError%3A%20Encountered%20unresolved%20custom%20op%3A%20NeutronGraph.%3CBR%20%2F%3ESee%20instructions%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.tensorflow.org%2Flite%2Fguide%2Fops_custom%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.tensorflow.org%2Flite%2Fguide%2Fops_custom%3C%2FA%3E%20Node%20number%201%20(NeutronGraph)%20failed%20to%20prepare.Encountered%20unresolved%20custom%20op%3A%20NeutronGraph.%3CBR%20%2F%3ESee%20instructions%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.tensorflow.org%2Flite%2Fguide%2Fops_custom%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.tensorflow.org%2Flite%2Fguide%2Fops_custom%3C%2FA%3E%20Node%20number%201%20(NeutronGraph)%20failed%20to%20prepare.%3C%2FMODULE%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3EWith%20the%20executable%20version%20i%20get%3CBR%20%2F%3Eroot%40imx95evk%3A%2Fusr%2Fbin%2Ftensorflow-lite-2.18.0%2Fexamples%23%20.%2Flabel_image%20-m%20mobilenet_v1_1.0_224_quant_converted.tflite%3CBR%20%2F%3EINFO%3A%20Loaded%20model%20mobilenet_v1_1.0_224_quant_converted.tflite%3CBR%20%2F%3EINFO%3A%20resolved%20reporter%3CBR%20%2F%3EError%20in%20cpuinfo%3A%20prctl(PR_SVE_GET_VL)%20failed%3CBR%20%2F%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3CBR%20%2F%3EERROR%3A%20Encountered%20unresolved%20custom%20op%3A%20NeutronGraph.%3CBR%20%2F%3ESee%20instructions%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.tensorflow.org%2Flite%2Fguide%2Fops_custom%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.tensorflow.org%2Flite%2Fguide%2Fops_custom%3C%2FA%3E%3CBR%20%2F%3EERROR%3A%20Node%20number%201%20(NeutronGraph)%20failed%20to%20prepare.%3CBR%20%2F%3EERROR%3A%20Encountered%20unresolved%20custom%20op%3A%20NeutronGraph.%3CBR%20%2F%3ESee%20instructions%3A%20%3CA%20href%3D%22https%3A%2F%2Fwww.tensorflow.org%2Flite%2Fguide%2Fops_custom%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fwww.tensorflow.org%2Flite%2Fguide%2Fops_custom%3C%2FA%3E%3CBR%20%2F%3EERROR%3A%20Node%20number%201%20(NeutronGraph)%20failed%20to%20prepare.%3CBR%20%2F%3EERROR%3A%20Failed%20to%20allocate%20tensors!%3C%2FP%3E%3CP%3EGreetings%26nbsp%3B%3C%2FP%3E%3CP%3EOlivier%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194633%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194633%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F245939%22%20target%3D%22_blank%22%3E%40OlivierG%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3EPlease%20refer%20previous%20reply%20here.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhiming_Liu_0-1761699158616.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhiming_Liu_0-1761699158616.png%22%20style%3D%22width%3A%20302px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F362966iD7BBE858E45F2564%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhiming_Liu_0-1761699158616.png%22%20alt%3D%22Zhiming_Liu_0-1761699158616.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3ETo%20use%20NPU%20in%20i.MX95%2C%20customer%20need%20to%20convert%20common%20.tflite%20to%20neutron%20.tflite%20support%20with%20eIQ%20or%26nbsp%3Bneutron%20converter%20CLI.%3C%2FP%3E%0A%3CP%3EHere%20you%20can%20try%20this%20model%20which%20i%20converted%20with%20eIQ.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2194308%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2194308%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%3C%2FP%3E%3CP%3Enow%2C%20i%20have%20a%20imx95-19x19-lpddr5-evk%3C%2FP%3E%3CP%3EThe%20Yocto%20is%3CBR%20%2F%3Ei.MX%20Linux%20Yocto%20Project%20BSP%206.12.20_2.0.0%20Release%3C%2FP%3E%3CP%3EWhen%20i%20launch%3CBR%20%2F%3Eroot%40imx95evk%3A%2Fusr%2Fbin%2Ftensorflow-lite-2.18.0%2Fexamples%23%20.%2Fbenchmark_model%20--graph%3Dmobilenet_v1_1.0_224_quant.tflite%20--external_delegate_path%3D%2Fusr%2Flib%2Flibneutron_delegate.so%3CBR%20%2F%3EINFO%3A%20STARTING!%3CBR%20%2F%3EINFO%3A%20Log%20parameter%20values%20verbosely%3A%20%5B0%5D%3CBR%20%2F%3EINFO%3A%20Graph%3A%20%5Bmobilenet_v1_1.0_224_quant.tflite%5D%3CBR%20%2F%3EINFO%3A%20Signature%20to%20run%3A%20%5B%5D%3CBR%20%2F%3EINFO%3A%20External%20delegate%20path%3A%20%5B%2Fusr%2Flib%2Flibneutron_delegate.so%5D%3CBR%20%2F%3EINFO%3A%20Loaded%20model%20mobilenet_v1_1.0_224_quant.tflite%3CBR%20%2F%3EINFO%3A%20EXTERNAL%20delegate%20created.%3CBR%20%2F%3E%3CSTRONG%3EINFO%3A%20NeutronDelegate%20delegate%3A%200%20nodes%20delegated%20out%20of%2031%20nodes%20with%200%20partitions.%3C%2FSTRONG%3E%3C%2FP%3E%3CP%3E%3CSTRONG%3EINFO%3A%20Though%20EXTERNAL%20delegate%20is%20explicitly%20applied%2C%20the%20model%20graph%20will%20not%20be%20executed%20by%20the%20delegate.%3C%2FSTRONG%3E%3CBR%20%2F%3EError%20in%20cpuinfo%3A%20prctl(PR_SVE_GET_VL)%20failed%3CBR%20%2F%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3CBR%20%2F%3EINFO%3A%20The%20input%20model%20file%20size%20(MB)%3A%204.27635%3CBR%20%2F%3EINFO%3A%20Initialized%20session%20in%2056.257ms.%3CBR%20%2F%3EINFO%3A%20Running%20benchmark%20for%20at%20least%201%20iterations%20and%20at%20least%200.5%20seconds%20but%20terminate%20if%20exceeding%20150%20seconds.%3CBR%20%2F%3EINFO%3A%20count%3D5%20first%3D122578%20curr%3D118671%20min%3D118400%20max%3D122578%20avg%3D119396%20std%3D1595%3C%2FP%3E%3CP%3EINFO%3A%20Running%20benchmark%20for%20at%20least%2050%20iterations%20and%20at%20least%201%20seconds%20but%20terminate%20if%20exceeding%20150%20seconds.%3CBR%20%2F%3EINFO%3A%20count%3D50%20first%3D118459%20curr%3D117971%20min%3D117954%20max%3D118782%20avg%3D118259%20std%3D173%3C%2FP%3E%3CP%3EINFO%3A%20Inference%20timings%20in%20us%3A%20Init%3A%2056257%2C%20First%20inference%3A%20122578%2C%20Warmup%20(avg)%3A%20119396%2C%20Inference%20(avg)%3A%20118259%3CBR%20%2F%3EINFO%3A%20Note%3A%20as%20the%20benchmark%20tool%20itself%20affects%20memory%20footprint%2C%20the%20following%20is%20only%20APPROXIMATE%20to%20the%20actual%20memory%20footprint%20of%20the%20model%20at%20runtime.%20Take%20the%20information%20at%20your%20discretion.%3CBR%20%2F%3EINFO%3A%20Memory%20footprint%20delta%20from%20the%20start%20of%20the%20tool%20(MB)%3A%20init%3D12.0352%20overall%3D15.1602%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Ewhen%20i%20launch%3CBR%20%2F%3Ecat%20%2Fsys%2Fclass%2Fremoteproc%2Fremoteproc0%2Fstate%3CBR%20%2F%3Ei%20get%20%3A%20%3CSTRONG%3Eoffline%3C%2FSTRONG%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EGreetings%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EOlivier%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2189593%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2189593%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3E%3C%2FP%3E%0A%3CP%3EPlease%20download%20eIQ%20to%20convert%20.tflite%20with%20Neutron%20support.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhiming_Liu_0-1761024034289.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhiming_Liu_0-1761024034289.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361735iB6FEBBFCB1B4FCB0%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhiming_Liu_0-1761024034289.png%22%20alt%3D%22Zhiming_Liu_0-1761024034289.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EThe%20eIQ1.16%20is%20for%20L6.12.20%26nbsp%3BNeutron%20support.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhiming_Liu_1-1761024318029.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhiming_Liu_1-1761024318029.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361736i0389BF8CAD6E8C91%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhiming_Liu_1-1761024318029.png%22%20alt%3D%22Zhiming_Liu_1-1761024318029.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3EFor%20%3CSPAN%20class%3D%22fontstyle0%22%3ENeutron%20Converter%26nbsp%3B%3C%2FSPAN%3ECLI%2C%20please%20refer%20eIQ%20User%20Guide.%3C%2FP%3E%0A%3CP%3E%3CSPAN%20class%3D%22lia-inline-image-display-wrapper%20lia-image-align-inline%22%20image-alt%3D%22Zhiming_Liu_0-1761024419102.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cspan%20class%3D%22lia-inline-image-display-wrapper%22%20image-alt%3D%22Zhiming_Liu_0-1761024419102.png%22%20style%3D%22width%3A%20400px%3B%22%3E%3Cimg%20src%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fimage%2Fserverpage%2Fimage-id%2F361737i50BB2568CC717F15%2Fimage-size%2Fmedium%3Fv%3Dv2%26amp%3Bpx%3D400%22%20role%3D%22button%22%20title%3D%22Zhiming_Liu_0-1761024419102.png%22%20alt%3D%22Zhiming_Liu_0-1761024419102.png%22%20%2F%3E%3C%2Fspan%3E%3C%2FSPAN%3E%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CP%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2182501%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2182501%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3CBR%20%2F%3E%3CBR%20%2F%3EYes%2C%20the%20sw%20team%20is%20investigating%20this%20issue.%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2178085%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2178085%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHI%3C%2FP%3E%3CP%3Ei%20try%20the%20folowing%20python%20code%3C%2FP%3E%3CP%3E%3CEM%3Eimport%20tensorflow%20as%20tf%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Emodelpath%20%3D'model_yolo_11s_int8_fp32.tflite'%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Ewith%20open(modelpath%2C%20'rb')%20as%20fid%3A%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Etflite_model%20%3D%20fid.read()%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3Einterpreter%20%3D%20tf.lite.Interpreter(model_content%3Dtflite_model%2Cexperimental_delegates%3D%5Btf.lite.experimental.load_delegate('libneutron_delegate.so')%5D)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Einterpreter.allocate_tensors()%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CBR%20%2F%3Ei%20get%20the%20following%20error%20message%3C%2FP%3E%3CP%3E%3CEM%3E%2Fusr%2Flib%2Fpython3.13%2Fsite-packages%2Ftensorflow%2Flite%2Fpython%2Finterpreter.py%3A457%3A%20UserWarning%3A%20Warning%3A%20tf.lite.Interpreter%20is%20deprecated%20and%20is%20scheduled%20for%20deletion%20in%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ETF%202.20.%20Please%20use%20the%20LiteRT%20interpreter%20from%20the%20ai_edge_litert%20package.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ESee%20the%20%5Bmigration%20guide%5D(%3CA%20href%3D%22https%3A%2F%2Fai.google.dev%2Fedge%2Flitert%2Fmigration%22%20target%3D%22_blank%22%20rel%3D%22nofollow%20noopener%20noreferrer%22%3Ehttps%3A%2F%2Fai.google.dev%2Fedge%2Flitert%2Fmigration%3C%2FA%3E)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Efor%20details.%3C%2FEM%3E%3CBR%20%2F%3E%3CBR%20%2F%3E%3CEM%3Ewarnings.warn(_INTERPRETER_DELETION_WARNING)%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20NeutronDelegate%20delegate%3A%200%20nodes%20delegated%20out%20of%20339%20nodes%20with%200%20partitions.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EException%20ignored%20in%3A%20%3CFUNCTION%20delegate.__del__%3D%22%22%20at%3D%22%22%200xffff5171bf60%3D%22%22%3E%3C%2FFUNCTION%3E%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ETraceback%20(most%20recent%20call%20last)%3A%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EFile%20%22%2Fusr%2Flib%2Fpython3.13%2Fsite-packages%2Ftensorflow%2Flite%2Fpython%2Finterpreter.py%22%2C%20line%20122%2C%20in%20__del__%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EAttributeError%3A%20'NoneType'%20object%20has%20no%20attribute%20'c_void_p'%3C%2FEM%3E%3C%2FP%3E%3CP%3EDoes%20the%20python%20code%20match%20your%20answer%3F%3CBR%20%2F%3Ei%20precise%20that%20l%3CEM%3Eibethosu_delegate.so%3C%2FEM%3E%20is%20not%20on%20my%20Card%3C%2FP%3E%3CBR%20%2F%3E%3CP%3EGreetings%3C%2FP%3E%3CP%3EOlivier%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2177776%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2177776%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%26nbsp%3B%3CA%20href%3D%22https%3A%2F%2Fcommunity.nxp.com%2Ft5%2Fuser%2Fviewprofilepage%2Fuser-id%2F245939%22%20target%3D%22_blank%22%3E%40OlivierG%3C%2FA%3E%26nbsp%3B%3C%2FP%3E%0A%3CP%3EPlease%20use%20older%20verison%20with%20tensorflow%202.16.2%2C%20like%20L6.6.X.%3C%2FP%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3Eroot%40imx95frdm%3A%2Fusr%2Fbin%2Ftensorflow-lite-2.16.2%2Fexamples%23%20python3%20label_image.py%20--ext_delegate%20%2Fusr%2Flib%2Flibneutron_delegate.so%0ALoading%20external%20delegate%20from%20%2Fusr%2Flib%2Flibneutron_delegate.so%20with%20args%3A%20%7B%7D%0A%0AINFO%3A%20NeutronDelegate%20delegate%3A%2029%20nodes%20delegated%20out%20of%2031%20nodes%20with%201%20partitions.%0A%0AINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%0AWarm-up%20time%3A%203.9%20ms%0A%0AInference%20time%3A%201.8%20ms%0A%0A0.850980%3A%20military%20uniform%0A0.058824%3A%20Windsor%20tie%0A0.011765%3A%20bulletproof%20vest%0A0.007843%3A%20bow%20tie%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3EThere%20are%20some%20issue%20about%20NPU%20delegate%20even%20in%20latest%20BSP%20L6.12.34%3CBR%20%2F%3E%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2176366%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2176366%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3Ehi%3C%2FP%3E%3CP%3Eon%20IMX%2095%20i%20get%3C%2FP%3E%3CP%3E%3CEM%3Epython3%20label_image.py%20--ext_delegate%20%2Fusr%2Flib%2Flibneutron_delegate.so%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3ELoading%20external%20delegate%20from%20libneutron_delegate.so%20with%20args%3A%20%7B%7D%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3Eext_delegate%20%5B%3CTFLITE_RUNTIME.INTERPRETER.DELEGATE%20object%3D%22%22%20at%3D%22%22%200xffffa6d52660%3D%22%22%3E%5D%3C%2FTFLITE_RUNTIME.INTERPRETER.DELEGATE%3E%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20NeutronDelegate%20delegate%3A%200%20nodes%20delegated%20out%20of%2031%20nodes%20with%200%20partitions.%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EError%20in%20cpuinfo%3A%20prctl(PR_SVE_GET_VL)%20failed%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EWarm-up%20time%3A%20122.3%20ms%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EInference%20time%3A%20118.2%20ms%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E0.870588%3A%20military%20uniform%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E0.031373%3A%20Windsor%20tie%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E0.011765%3A%20mortarboard%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E0.007843%3A%20bow%20tie%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E0.007843%3A%20bulletproof%20vest%3C%2FEM%3E%3C%2FP%3E%3CBR%20%2F%3E%3CP%3Ein%20comparison%2C%20on%20IMX%2093%20i%20get%3C%2FP%3E%3CP%3E%3CEM%3Epython3%20label_image.py%20--ext_delegate%20%2Fusr%2Flib%2Flibethosu_delegate.so%20%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3ELoading%20external%20delegate%20from%20%2Fusr%2Flib%2Flibethosu_delegate.so%20with%20args%3A%20%7B%7D%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Ethosu%20delegate%3A%20device_name%20set%20to%20%2Fdev%2Fethosu0.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Ethosu%20delegate%3A%20cache_file_path%20set%20to%20.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Ethosu%20delegate%3A%20timeout%20set%20to%2060000000000.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Ethosu%20delegate%3A%20enable_cycle_counter%20set%20to%200.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Ethosu%20delegate%3A%20enable_profiling%20set%20to%200.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Ethosu%20delegate%3A%20profiling_buffer_size%20set%20to%202048.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Ethosu%20delegate%3A%20pmu_event0%20set%20to%200.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Ethosu%20delegate%3A%20pmu_event1%20set%20to%200.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Ethosu%20delegate%3A%20pmu_event2%20set%20to%200.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20Ethosu%20delegate%3A%20pmu_event3%20set%20to%200.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EINFO%3A%20EthosuDelegate%3A%2031%20nodes%20delegated%20out%20of%2031%20nodes%20with%201%20partitions.%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3EWarm-up%20time%3A%204.1%20ms%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3EInference%20time%3A%203.9%20ms%3C%2FEM%3E%3C%2FP%3E%3CP%3E%3CEM%3E0.874510%3A%20military%20uniform%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E0.031373%3A%20Windsor%20tie%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E0.015686%3A%20mortarboard%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E0.011765%3A%20bulletproof%20vest%3C%2FEM%3E%3CBR%20%2F%3E%3CEM%3E0.007843%3A%20bow%20tie%3C%2FEM%3E%3C%2FP%3E%3CP%3Eon%26nbsp%3B%20imx%2093%20there%20is%20no%20message%3A%3C%2FP%3E%3CP%3E%3CEM%3EINFO%3A%20Created%20TensorFlow%20Lite%20XNNPACK%20delegate%20for%20CPU.%3C%2FEM%3E%3C%2FP%3E%3CP%3EThe%20inference%20time%20is%26nbsp%3Bmuch%20shorter%26nbsp%3B%26nbsp%3B%3CEM%3E118.2%20ms%20-%26gt%3B%26nbsp%3B3.9%20ms%3C%2FEM%3E%3C%2FP%3E%3CP%3EOlivier%3C%2FP%3E%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E%3CLINGO-SUB%20id%3D%22lingo-sub-2176138%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%20translate%3D%22no%22%3ERe%3A%20IMX%2095%20NPU%20not%20activated%3C%2FLINGO-SUB%3E%3CLINGO-BODY%20id%3D%22lingo-body-2176138%22%20slang%3D%22en-US%22%20mode%3D%22CREATE%22%3E%3CP%3EHi%2C%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSPAN%3EIs%20there%20a%20connection%20between%20these%20two%20messages%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E--%26gt%3BThere%20is%20no%20connection%20about%20them.%3C%2FP%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSPAN%3EShould%20I%20conclude%20that%20the%20NPU%20is%20not%20enabled%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E--%26gt%3BIf%20you%20can%20see%20below%20log%2C%20that%20means%20NPU%20delegate%20is%20working.%26nbsp%3B%3C%2FP%3E%0A%3CBR%20%2F%3E%0A%3CPRE%20class%3D%22lia-code-sample%20language-markup%22%3E%3CCODE%3EINFO%3A%20NeutronDelegate%20delegate%3A%20.......%3C%2FCODE%3E%3C%2FPRE%3E%0A%3CP%3E%3CBR%20%2F%3E%3CSPAN%3EWhat%20should%20I%20do%20to%20resolve%20this%20issue%3F%3C%2FSPAN%3E%3C%2FP%3E%0A%3CP%3E--%26gt%3BCan%20you%20share%20full%20log%3F%3CBR%20%2F%3E%3CBR%20%2F%3EBest%20Regards%2C%3CBR%20%2F%3EZhiming%3C%2FP%3E%0A%3CBR%20%2F%3E%3C%2FLINGO-BODY%3E