Skip to content

Elu operator GPU support and regression test#38

Open
harz05 wants to merge 1 commit into
ML4EP:gpu/alpakafrom
harz05:feat/elu-gpu
Open

Elu operator GPU support and regression test#38
harz05 wants to merge 1 commit into
ML4EP:gpu/alpakafrom
harz05:feat/elu-gpu

Conversation

@harz05

@harz05 harz05 commented Jun 15, 2026

Copy link
Copy Markdown

This PR adds the gpu support for elu operator. GPU kernel is element-wise, one thread per element(similar to Tanh).
A small paranthesis bug has also been fixed where for x<=0 the Generate() function emitted alpha*exp(x) - 1 instead of alpha * (exp(x) - 1) , since only alpha=1 case was considered so this bug didn't surface.
Also aded TESTF for Elu and using existing onnx and reference values.

Verified on Colab T4, all test cases passing.
image

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant