Skip to content

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

@mxpoch mxpoch closed this Oct 9, 2025
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