fixstars / ion-kit

Modernized graph-based data processing framework
MIT License
7 stars 6 forks source link

bind to raw data without generic type #308

Closed richardfixstars closed 1 month ago

richardfixstars commented 2 months ago

Port.bind(T* data) is restrictive to use in certain circumstances. Adding a Halide::Type as an argument and removing the generic typing helps.

Port.bind(Halide::Type, void* data) allows binding to raw addresses.

iitaku commented 2 months ago

@richardfixstars Can you reimplemnt generic version of bind as a wrapper function of the new function which you propose?

richardfixstars commented 2 months ago

@richardfixstars Can you reimplemnt generic version of bind as a wrapper function of the new function which you propose?

That makes sense. Done.