![]() |
AIfES 2
2.0.0
|
Default implementation of the Tanh layer . More...
Go to the source code of this file.
Typedefs | |
typedef struct ailayer_tanh | ailayer_tanh_f32_t |
Functions | |
ailayer_t * | ailayer_tanh_f32_default (ailayer_tanh_f32_t *layer, ailayer_t *input_layer) |
Initializes and connect an Tanh layer with the F32 default implementation. More... | |
uint8_t | ailayer_tanh_get_result_bound_f32_default (const ailayer_t *self, const uint8_t selector, void *result_bound) |
Get valid value range of output of tanh layer. More... | |
Default implementation of the Tanh layer .
AIfES is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with this program. If not, see https://www.gnu.org/licenses/.
Hardware independent implementations of the Tanh layer in F32 data-type. For more information about the Tanh layer refer to ailayer_tanh.h.
ailayer_t* ailayer_tanh_f32_default | ( | ailayer_tanh_f32_t * | layer, |
ailayer_t * | input_layer | ||
) |
Initializes and connect an Tanh layer with the F32 default implementation.
Example: Create the layer structure:
Example: Initialize and connect the layer:
Initializes the tanh layer structure with the float 32 default implementation
*layer | The layer structure to initialize. |
*input_layer | The prior layer. |
uint8_t ailayer_tanh_get_result_bound_f32_default | ( | const ailayer_t * | self, |
const uint8_t | selector, | ||
void * | result_bound | ||
) |
Get valid value range of output of tanh layer.
Gives the upper and lower bound of the results obtained by interference with the tanh activation function
*self | the layer to get the upper and lower limit for |
*selector | the type of the bound (result/deltas, upper/lower) |
*result_bound | value of the limit, if exists |