aboutsummaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorjvech <jmvalenciae@unal.edu.co>2023-08-12 07:51:21 -0500
committerjvech <jmvalenciae@unal.edu.co>2023-08-12 07:51:21 -0500
commit0962620dfc7b56ec7f5c423a2e3bb9c8dc4493c2 (patch)
tree53f45c4f667d00394f8374fe1fed30267142a125 /src
parent30dd1e327571c3ba9de8ee8740c607dcc0ece584 (diff)
add: softplus activation added
Diffstat (limited to 'src')
-rw-r--r--src/activations.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/src/activations.c b/src/activations.c
index 011734d..e2704ee 100644
--- a/src/activations.c
+++ b/src/activations.c
@@ -14,6 +14,11 @@ struct Activation NN_LEAKY_RELU = {
.dfunc = dleaky_relu
};
+struct Activation NN_SOFTPLUS = {
+ .func = softplus,
+ .dfunc = dsoftplus
+};
+
struct Activation NN_RELU = {
.func = relu,
.dfunc = drelu
Feel free to download, copy and edit any repo