Skip to content
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

Added Mish activation function - Ready for merge #94

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

Conversation

JamesLear92
Copy link

@JamesLear92 JamesLear92 commented Nov 22, 2019

I've added the Mish activatation function as suggested in #93

This is work in progress at the moment as it's working perfectly when not using CUDA.

When running the DigitsCudaTest sample with the Mish function, I'm currently seeing:

 System.Exception: 'methodBody is null
 Source location stack:
-> at NeuralNetworkNET.Networks.Activations.ActivationFunctions.[Single MishPrime(Single)]
-> at NeuralNetworkNET.cuDNN.CuDnnExtensions+<>c__DisplayClass1_0.[Void <ActivationBackward>g__Kernel|0(Int32)]
-> at Alea.Parallel.Device.DeviceFor.[Void Kernel(Int32, Int32, System.Action`1[System.Int32])]
-> at defining runtime64 (sm52,64bit)

MishPrime function looks right to me (and works fine without cuda), but evidently something is wrong. I wonder if this is something Alea need to support.

EDIT:
Now working, and ready for merge.
Issue was caused by MishPrime function using Math.Pow (unsupported).

Math.Pow is not supported, so method has been rewritten to avoid it.
@JamesLear92 JamesLear92 changed the title Added Mish activation function - WIP Added Mish activation function - Ready for merge Nov 24, 2019
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.

None yet

1 participant