- Timestamp:
- Dec 29, 2021, 5:52:00 PM (3 years ago)
- Branches:
- feature/crepe
- Children:
- e75bd80
- Parents:
- 557e0a7
- git-author:
- Paul Brossier <piem@piem.org> (01/23/19 23:32:36)
- git-committer:
- Paul Brossier <piem@piem.org> (12/29/21 17:52:00)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
src/ai/activation.h
r557e0a7 r2de864e 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.