Changeset c249f57
- Timestamp:
- Jan 23, 2019, 11:32:36 PM (6 years ago)
- Branches:
- feature/crepe_org
- Children:
- 51c0b61
- Parents:
- e75a48e
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ai/activation.h
re75a48e rc249f57 23 23 #define AUBIO_ACTIVATION_H 24 24 25 /** \file 26 27 Activation functions. 28 29 */ 30 25 31 #ifdef __cplusplus 26 32 extern "C" { 27 33 #endif 28 34 35 /** Rectifier linear unit (ReLU) 36 37 \param t input tensor on which to compute the activation function (in-place) 38 39 Upon return, each value \f$x\f$ of the tensor \f$t\f$ will be set to 40 \f$max(0, x)\f$. 41 42 */ 29 43 void aubio_activation_relu(aubio_tensor_t *t); 44 45 /** compute sigmoid activation 46 47 \param t input tensor on which to compute the activation function (in-place) 48 49 Upon return, each value \f$x\f$ of the tensor \f$t\f$ will be set to 50 \f$\frac{1}{1 + e^{-x}}\f$. 51 52 */ 30 53 void aubio_activation_sigmoid(aubio_tensor_t *t); 31 54
Note: See TracChangeset
for help on using the changeset viewer.