AIfES 2  2.0.0
ailayer_sigmoid_default.h File Reference

Default implementation of the Sigmoid layer . More...

Go to the source code of this file.

Typedefs

typedef struct ailayer_sigmoid ailayer_sigmoid_f32_t
 

Functions

ailayer_tailayer_sigmoid_f32_default (ailayer_sigmoid_f32_t *layer, ailayer_t *input_layer)
 Initializes and connect a Sigmoid layer with the F32 default implementation. More...
 
uint8_t ailayer_sigmoid_get_result_bound_f32_default (const ailayer_t *self, const uint8_t selector, void *result_bound)
 Get the value bounds for Sigmoid layers. More...
 

Detailed Description

Default implementation of the Sigmoid layer .

Version
2.0alpha

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 Sigmoid layer in F32 data-type. For more information about the Sigmoid layer refer to ailayer_sigmoid.h.

Function Documentation

◆ ailayer_sigmoid_f32_default()

ailayer_t* ailayer_sigmoid_f32_default ( ailayer_sigmoid_f32_t layer,
ailayer_t input_layer 
)

Initializes and connect a Sigmoid layer with the F32 default implementation.

Example: Create the layer structure:

ailayer_sigmoid_f32_t sigmoid_layer;
General Sigmoid layer struct.
Definition: ailayer_sigmoid.h:50

Example: Initialize and connect the layer:

x = ailayer_sigmoid_f32_default(&sigmoid_layer, x);
ailayer_t * ailayer_sigmoid_f32_default(ailayer_sigmoid_f32_t *layer, ailayer_t *input_layer)
Initializes and connect a Sigmoid layer with the F32 default implementation.
Parameters
*layerThe layer structure to initialize.
*input_layerThe prior layer.
Returns
The (successfully) initialized layer structure.

◆ ailayer_sigmoid_get_result_bound_f32_default()

uint8_t ailayer_sigmoid_get_result_bound_f32_default ( const ailayer_t self,
const uint8_t  selector,
void *  result_bound 
)

Get the value bounds for Sigmoid layers.

For the float 32 representation only result bounds are defined.

Parameters
*selfReferenced layer structure.
selectorSelect, which bound value to get. Possible values:
  • AILAYER_RESULT_LOWER_BOUND
  • AILAYER_RESULT_UPPER_BOUND
  • AILAYER_DELTAS_LOWER_BOUND
  • AILAYER_DELTAS_UPPER_BOUND
result_boundPointer to the memory space, the function writes the requested value to.
Returns
  • TRUE: requested value available and set to result_bound
  • FALSE: requestet value is not available and result_bound is not set