Giter VIP home page Giter VIP logo

Comments (5)

christophe0606 avatar christophe0606 commented on June 4, 2024

@kjbracey Thank for reporting this. It is a bug.

MVE versions are not strictly identical to the scalar versions and may give a slightly different result. It was required (sometimes) for vectorizing more easily.

But the difference should be minimal. Here, it is clearly not a small difference.

from cmsis-dsp.

christophe0606 avatar christophe0606 commented on June 4, 2024

@kjbracey It looks like the scalar versions are also not consistent.
q31 is first doing a >> 32 before applying the shift.

So it is not just a consistency issue with MVE versions.

from cmsis-dsp.

kjbracey avatar kjbracey commented on June 4, 2024

So it does. Yet the high-precision intermediate is very clearly specified, and would seem to be a key feature of this specific function.

Although other characteristics might be suitable for most users - eg I replaced my call to q15 with one using a float16 intermediate because always getting a consistent 11 bits of precision was fine.

Maybe there could be an API fork between the "high precision, no loss near unity gain" expensive version as currently specified and a "pretty good precision" performance version.

from cmsis-dsp.

christophe0606 avatar christophe0606 commented on June 4, 2024

I have changed the MVE implementations for arm_scale_q15 and arm_scale_q7. Now they behave like the scalar version but they take more cycles.

For the q31 (both scalar and MVE) : nothing has changed but I modified the documentation to make to make it clear it is doing a shift by 32 before applying the shift argument so there is a loss of accuracy.

from cmsis-dsp.

kjbracey avatar kjbracey commented on June 4, 2024

Seems reasonable to me. I haven't tested it yet though. Thanks!

from cmsis-dsp.

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.