AIfES 2  2.0.0
ailayer_elu_default.h File Reference

Default implementation of the ELU layer . More...

Go to the source code of this file.

Data Structures

struct  ailayer_elu_f32
 Data-type specific ELU layer struct for F32 . More...
 

Typedefs

typedef struct ailayer_elu_f32 ailayer_elu_f32_t
 

Functions

ailayer_tailayer_elu_f32_default (ailayer_elu_f32_t *layer, ailayer_t *input_layer)
 Initializes and connect an ELU layer with the F32 default implementation. More...
 

Detailed Description

Default implementation of the ELU 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 ELU layer in F32 data-type. For more information about the ELU layer refer to ailayer_elu.h.

Function Documentation

◆ ailayer_elu_f32_default()

ailayer_t* ailayer_elu_f32_default ( ailayer_elu_f32_t layer,
ailayer_t input_layer 
)

Initializes and connect an ELU layer with the F32 default implementation.

Example: Create the layer structure:

ailayer_elu_f32_t elu_layer = {
.alpha = 1.0f
};
Data-type specific ELU layer struct for F32 .
Definition: ailayer_elu_default.h:41
aiscalar_f32_t alpha
Data-type specific parameter used to calculate ELU function for input values < 0.
Definition: ailayer_elu_default.h:43

Example: Initialize and connect the layer:

x = ailayer_elu_f32_default(&elu_layer, x);
ailayer_t * ailayer_elu_f32_default(ailayer_elu_f32_t *layer, ailayer_t *input_layer)
Initializes and connect an ELU layer with the F32 default implementation.
Parameters
*layerThe layer structure to initialize.
*input_layerThe prior layer.
Returns
The (successfully) initialized layer structure.