by janwas · 3mo ago · 0 comments
We actually did manage to get dynamic dispatch working in Compiler explorer with Matt's help: https://gcc.godbolt.org/z/KM3ben7ET
Maybe interesting to also refer to Gemma.cpp's version: https://github.com/google/gemma.cpp/blob/dev/ops/ops-inl.h#L...
We recently added a FastExpMinusOrZero, only valid for inputs <= 0, which is true for softmax.
I have not yet looked in dynamic dispatch - I train on Neon and deploy to WASM so I only target a single arch on each target...