Coder Social home page Coder Social logo

Comments (4)

federicoparra avatar federicoparra commented on July 20, 2024

@Colm-in-Arm ? @catcor01 ? any ideas?

from armnn.

Colm-in-Arm avatar Colm-in-Arm commented on July 20, 2024

Hello Federico,

Sorry for the delay. We were busy getting 24.05 delivered.

I'm surprised you're not getting more detailed error messages. When I called ModifyGraphWithDelegate with that model I got a "kTfLiteApplicationError." result. This doesn't come from Arm NN but from the TfLite runtime itself. TfLite documentation says:

kTfLiteApplicationError : Delegation failed to be applied due to the incompatibility with the TfLite runtime, e.g., the model graph is already immutable when applying the delegate. However, the interpreter could still be invoked.

Examining the model in Netron shows a pretty monstrous WHILE operator at the end. Arm NN does not support conditionals and TfLite insists that an entire conditional subgraph must be delegated otherwise it will not allow delegation.

In summary this model cannot be run on Arm NN.

Colm.

from armnn.

federicoparra avatar federicoparra commented on July 20, 2024

With all due respect @Colm-in-Arm , that's not acceptable :(

We are talking about Whisper!
You feel comfortable saying that maybe one of the most important models around can't be supported by what you claim is supposed to be the fastest/best supported way to run neural networks on ARM?

It has trouble with LLMs, it can't do Whisper, so what can it do? Object détection? Is that what this library is meant to do?

In the meantime, MLC-LLM with it's compilation techniques achieves quite fast generative inference on the Mali GPU.

I'm sorry but like me, many will discard ARMNN when they realize it doesn't support any of the modern networks we need to run these days :(

from armnn.

MatthewARM avatar MatthewARM commented on July 20, 2024

I did a bit of digging, it seems the kTfLiteApplicationError is being raised at subgraph.cc:2255 in Tensorflow Lite, which is checking if the delegate supports dynamically shaped tensors, so the error is the same as the warning that is also raised "WARNING: Attempting to use a delegate that only supports static-sized tensors with a graph that has dynamic-sized tensors (tensor#1936 is a dynamic-sized tensor)."

For what it's worth, it looks like the built-in XNNPACK delegate also hits that path when Lite tries to apply it by default, and then at interpreter.cc:381 in Tensorflow Lite that error is ignored and inference proceeds using the default kernels without delegation.

I haven't checked what happens with the built-in Lite GPU delegate.

So this isn't really an Arm NN issue as such, this model is hitting the cutting-edge of what Tensorflow Lite can do in the default path and Tensorflow Lite doesn't seem ready to handle delegation of this model yet.

from armnn.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.