Skip to content

Added LeakyRelu function #122

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open

Added LeakyRelu function #122

wants to merge 2 commits into from

Conversation

mxpoch
Copy link
Contributor

@mxpoch mxpoch commented Aug 13, 2025

Added the leakyrelu function to misc.jl.

This is part of a solution to fix the integration test errors in LoopVectorization.

@mxpoch
Copy link
Contributor Author

mxpoch commented Aug 13, 2025

@oscardssmith

@oscardssmith
Copy link
Member

why can't this be in an extension? This feels wrong.

@mxpoch
Copy link
Contributor Author

mxpoch commented Aug 13, 2025

I suppose it can be, but we already have a definition for the relu function

@oscardssmith
Copy link
Member

fair enough. I also think this might not fix your issue since NNLib.leakyrelu and VectorizationBase.leakyrelu won't be the same function.

@mxpoch
Copy link
Contributor Author

mxpoch commented Aug 13, 2025

For some reason the forwarddiff extension extends the vectorizationbase relu function and not the one from NNlib

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.

2 participants