Benny-Nottonson / voodoo

A working machine learning framework in pure Mojo 🔥

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Rewrite kernels with lambda functions

Benny-Nottonson opened this issue · comments

Is your feature request related to a problem? Please describe.
All of the kernels in CPU kernels could benefit from being rewritten with lambda functions, but this is not currently supported in Mojo.

Describe the solution you'd like
The functions could all be rewritten using simple lambda functions once support is added, essentially any function tagged with @always_inline would likely benefit from this.

Describe alternatives you've considered
The current implementation is fine, but created unneeded code and likely performance overhead (At least during compilation)