GithubHelp home page GithubHelp logo

Dynamic Shape Support about xnnpack HOT 4 CLOSED

digantdesai avatar digantdesai commented on June 2, 2024 4
Dynamic Shape Support

from xnnpack.

Comments (4)

alankelly avatar alankelly commented on June 2, 2024 1

Hi Digant,

Dynamic input shapes are also interest us. Dynamic shapes are not supported today. The entire graph must be reinitialised if the shape of an input tensor changes. This is expensive as all weights must be re-packed and indirection buffers recalculated.

Support for dynamic input shapes are on our roadmap. This is very important to us too. However, unbounded dynamism will not be supported. A maximum value for each input dimension must be given and memory allocated using this. Some preliminary work has already be done. See here.

Using the lower level APIs to do this will be very slow so I strongly recommend not doing this. I am happy to speak with you to see if our plans will be useful to you.

from xnnpack.

digantdesai avatar digantdesai commented on June 2, 2024

Thanks for getting back to me. Glad to know that you are also interested in this feature.

Support for dynamic input shapes are on our roadmap. This is very important to us too. However, unbounded dynamism will not be supported. A maximum value for each input dimension must be given and memory allocated using this.

Upper-bounded, rank-specialized^ dynamism is something we are interested in at the moment as well. Do you have any timelines you can share for the roadmap?

Using the lower level APIs to do this will be very slow so I strongly recommend not doing this. I am happy to speak with you to see if our plans will be useful to you.

Agree, as I said earlier using lower level APIs is not the most desirable path for us as well. And I would be happy to sync with you on this and for the dynamic shape feature in general.

^ - Tensor rank is not dynamic.

from xnnpack.

cbilgin avatar cbilgin commented on June 2, 2024

Support for dynamic input shapes are on our roadmap.

Hi Alan, that's great news. We have a strong dependency to XNNPACK and this is one the main painpoints we have. I know a lot can chancge, but what's the rough timeline that you are thinking of for this?

from xnnpack.

alankelly avatar alankelly commented on June 2, 2024

I am quite hesitant to give timelines publicly as we are extremely short staffed now. This should change soon so I will keep you updated as to our plans

from xnnpack.

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.