Giter Club home page Giter Club logo

Comments (5)

DuanYuFi avatar DuanYuFi commented on June 3, 2024 1

I see. Anyway, it is stable if I call the kernels in this way: MulAA().proc(ctx, lhs, rhs);, right?
IMG_20230602_103215.jpg

from spu.

rivertalk avatar rivertalk commented on June 3, 2024

Hi @DuanYuFi,
Sorry for the inconvenience.

You can use dynDispatch to do this:
https://github.com/secretflow/spu/blob/bbd4819c31f2ef1a9a8c7e0a0741da72ca7e73d8/libspu/core/context.h#LL174C22-L174C22

Here is an example

return dynDispatch(ctx, "make_p", init, Shape(shape));

But the dynamic dispatch method is still not stable and flexible enough, i.e. we can not support online/offline split at the moment, so the API may change in the future...

Thanks.

from spu.

rivertalk avatar rivertalk commented on June 3, 2024

It should be... or I will change it for you [cry][cry]...

from spu.

DuanYuFi avatar DuanYuFi commented on June 3, 2024

Thanks, but I was determined to refactor the codes. So I will try to fix them recently. :)

from spu.

DuanYuFi avatar DuanYuFi commented on June 3, 2024

After deep consideration, I still think the previous way that dynamically calls to kernels is the best way (up to now) to satisfy my requirements... Now I think the best thing I could do is to wait until this part of code turns stable.

Thanks to SecretFlow, SPU team. I hope my work can merged into the main branch and I hope this day won't be so long LOL.

%%BYUG2OJMOH8${QA3ZTXE5

from spu.

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.