-
Notifications
You must be signed in to change notification settings - Fork 1
/
actfs.h
26 lines (20 loc) · 826 Bytes
/
actfs.h
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
/*----------------------------------------------------------------------
This program is free software; you can redistribute it and/or modify
it under the terms of the GNU General Public License version 2 as
published by the Free Software Foundation.
Midas Zhou
-----------------------------------------------------------------------*/
#ifndef __ACTFS_H__
#define __ACTFS_H__
#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>
#include <math.h>
#define DERIVATIVE_FUNC 1 /* to switch to derivative calculation in a function */
#define NORMAL_FUNC 0
double func_step(double x, double f, int token);
double func_sigmoid(double x, double f, int token);
double func_TanSigmoid(double x, double f, int token);
double func_ReLU(double x, double f, int token);
double func_PReLU(double x, double f, int token);
#endif