ARM-software / armnn

Arm NN ML Software. The code here is a read-only mirror of https://review.mlplatform.org/admin/repos/ml/armnn
https://developer.arm.com/products/processors/machine-learning/arm-nn
MIT License
1.14k stars 307 forks source link

Fatal error on TFLite delegate load #701

Closed oralian closed 1 year ago

oralian commented 1 year ago

When trying to load the TFLite delagate:

import tflite_runtime.interpreter as tflite

armnn_delegate = tflite.load_delegate(
    library="/home/aurelien/Projects/PreBuilts-Binaries/ArmNN-linux-aarch64/libarmnnDelegate.so",
    options={"backends": "CpuAcc,GpuAcc,CpuRef", "logging-severity": "trace"}
)

But I get this error:

Info: ArmNN v30.0.0
(8240) PVR:(Fatal): Debug assertion failed! (uiNumValidDevices > 0) [ device.c:521 ]
Aborted

I'm using a Beaglebone AI-64:

$ lscpu
Architecture:                    aarch64
CPU op-mode(s):                  32-bit, 64-bit
Byte Order:                      Little Endian
CPU(s):                          2
On-line CPU(s) list:             0,1
Thread(s) per core:              1
Core(s) per socket:              2
Socket(s):                       1
Vendor ID:                       ARM
Model:                           0
Model name:                      Cortex-A72
Stepping:                        r1p0
BogoMIPS:                        400.00
L1d cache:                       64 KiB
L1i cache:                       96 KiB
L2 cache:                        1 MiB
Vulnerability Itlb multihit:     Not affected
Vulnerability L1tf:              Not affected
Vulnerability Mds:               Not affected
Vulnerability Meltdown:          Not affected
Vulnerability Spec store bypass: Not affected
Vulnerability Spectre v1:        Mitigation; __user pointer sanitization
Vulnerability Spectre v2:        Not affected
Vulnerability Srbds:             Not affected
Vulnerability Tsx async abort:   Not affected
Flags:                           fp asimd evtstrm aes pmull sha1 sha2 crc32 cpuid

Thanks!

oralian commented 1 year ago

My bad, I installed the incorrect OS for my Beaglebone. Oops, now it runs fine!